mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 14:31:11 +01:00
modules/client/sync/rooms/state: Skip reflow for own-room join.
This commit is contained in:
parent
600563d272
commit
3aeeaccd42
1 changed files with 7 additions and 1 deletions
|
@ -107,7 +107,13 @@ ircd::m::sync::room_state_linear_events(data &data)
|
|||
&& data.membership == "join"
|
||||
};
|
||||
|
||||
if(is_own_join)
|
||||
const bool is_own_room_join
|
||||
{
|
||||
is_own_join
|
||||
&& m::creator(*data.room, data.user)
|
||||
};
|
||||
|
||||
if(is_own_join && !is_own_room_join)
|
||||
{
|
||||
// Special case gimmick; this effectively stops the linear-sync at this
|
||||
// event and has /sync respond with a token containing a flag. When the
|
||||
|
|
Loading…
Reference in a new issue