0
0
Fork 0
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:
Jason Volk 2023-01-19 13:02:37 -08:00
parent 600563d272
commit 3aeeaccd42

View file

@ -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