0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

ircd:Ⓜ️:room::members: Improve present state condition test.

This commit is contained in:
Jason Volk 2019-07-19 13:55:06 -07:00
parent 5d1e558c0e
commit 4de54ff00d

View file

@ -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};