mirror of
https://github.com/matrix-construct/construct
synced 2025-01-17 01:51:53 +01:00
ircd:Ⓜ️:room::members: Improve present state condition test.
This commit is contained in:
parent
5d1e558c0e
commit
4de54ff00d
1 changed files with 1 additions and 1 deletions
|
@ -3151,7 +3151,7 @@ const
|
||||||
|
|
||||||
// joined members optimization. Only possible when seeking
|
// joined members optimization. Only possible when seeking
|
||||||
// membership="join" on the present state of the room.
|
// membership="join" on the present state of the room.
|
||||||
if(!room.event_id && membership == "join")
|
if(membership == "join" && state{room}.present())
|
||||||
{
|
{
|
||||||
size_t ret{0};
|
size_t ret{0};
|
||||||
const room::origins origins{room};
|
const room::origins origins{room};
|
||||||
|
|
Loading…
Add table
Reference in a new issue