mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 00:02:34 +01:00
modules/client/sync/groups: Fix membership query on empty room_id.
This commit is contained in:
parent
dcbab1999a
commit
a70359fb9b
1 changed files with 3 additions and 2 deletions
|
@ -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{}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue