0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/client/rooms/initialsync: Default on the membership check for unauth'ed user.

This commit is contained in:
Jason Volk 2018-03-02 03:33:26 -08:00
parent f8e356eb0e
commit 6dbb1864dd

View file

@ -191,7 +191,7 @@ get__initialsync(client &client,
char membership_buffer[64];
const string_view membership
{
room.membership(membership_buffer, m::user::id{request.user_id})
request.user_id? room.membership(membership_buffer, m::user::id{request.user_id}) : string_view{}
};
//TODO: XXX