From 3aeeaccd42cbf0468c70fc740fb3f7e95c23585f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 19 Jan 2023 13:02:37 -0800 Subject: [PATCH] modules/client/sync/rooms/state: Skip reflow for own-room join. --- modules/client/sync/rooms/state.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/client/sync/rooms/state.cc b/modules/client/sync/rooms/state.cc index 13ddb6323..fcd1c9e16 100644 --- a/modules/client/sync/rooms/state.cc +++ b/modules/client/sync/rooms/state.cc @@ -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