0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-26 05:48:20 +02:00

modules/client/sync/groups: Fix membership query on empty room_id.

This commit is contained in:
Jason Volk 2022-06-27 11:17:15 -07:00
parent dcbab1999a
commit a70359fb9b

View file

@ -49,11 +49,12 @@ ircd::m::sync::groups_linear(data &data)
data.room, &room
};
assert(data.room);
char membuf[room::MEMBERSHIP_MAX_SIZE];
const string_view &membership
{
data.room?
m::membership(membuf, room, data.user):
data.room->room_id?
m::membership(membuf, *data.room, data.user):
string_view{}
};