mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-04 19:57:45 +00:00
Explain why former members skip the leave entry on initial sync
This commit is contained in:
1 file changed
+2
@@ -3507,6 +3507,8 @@ class SyncHandler:
|
||||
knock = await self.store.get_event(event.event_id)
|
||||
knocked.append(KnockedSyncResult(room_id=event.room_id, knock=knock))
|
||||
elif event.membership in (Membership.LEAVE, Membership.BAN):
|
||||
# Former members of an announcement room get the synthetic join
|
||||
# instead of this leave or ban.
|
||||
if event.room_id in sync_result_builder.announcement_room_ids:
|
||||
continue
|
||||
|
||||
|
||||
Reference in new issue
Block a user