mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 08:54:02 +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
|
||||
// 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};
|
||||
const room::origins origins{room};
|
||||
|
|
Loading…
Reference in a new issue