mirror of
https://github.com/matrix-construct/construct
synced 2024-11-28 17:52:54 +01:00
modules/client/sync/rooms: Fix m.room.create not synced to creator prior to join.
This commit is contained in:
parent
72dce4364c
commit
93bed7bc63
3 changed files with 7 additions and 6 deletions
|
@ -58,10 +58,11 @@ ircd::m::sync::rooms_linear(data &data)
|
|||
char membuf[room::MEMBERSHIP_MAX_SIZE];
|
||||
const string_view &membership
|
||||
{
|
||||
json::get<"room_id"_>(*data.event)?
|
||||
data.room && m::creation(*data.event, data.user)?
|
||||
"join"_sv:
|
||||
data.room?
|
||||
m::membership(membuf, room, data.user):
|
||||
|
||||
string_view{}
|
||||
string_view{}
|
||||
};
|
||||
|
||||
const scope_restore their_membership
|
||||
|
|
|
@ -109,7 +109,7 @@ ircd::m::sync::room_state_linear_events(data &data)
|
|||
|
||||
const bool is_own_room_join
|
||||
{
|
||||
is_own_join
|
||||
(is_own_join || m::creation(*data.event, data.user))
|
||||
&& m::creator(*data.room, data.user)
|
||||
};
|
||||
|
||||
|
@ -141,7 +141,7 @@ ircd::m::sync::room_state_linear_events(data &data)
|
|||
{
|
||||
viewport_size <= 0
|
||||
|| data.membership == "invite"
|
||||
|| sounding < viewport_size
|
||||
|| sounding <= viewport_size
|
||||
};
|
||||
|
||||
// Query whether this state cell has been overwritten. Unlike the timeline,
|
||||
|
|
|
@ -105,7 +105,7 @@ ircd::m::sync::room_timeline_linear(data &data)
|
|||
const bool viewport_visible
|
||||
{
|
||||
viewport_size <= 0
|
||||
|| sounding < viewport_size
|
||||
|| sounding <= viewport_size
|
||||
};
|
||||
|
||||
const bool is_own_membership
|
||||
|
|
Loading…
Reference in a new issue