mirror of
https://github.com/element-hq/synapse
synced 2024-09-03 19:00:06 +00:00
Don't include old left rooms
This commit is contained in:
parent
42aa1f3f33
commit
70dfe4dc96
1 changed files with 5 additions and 1 deletions
|
@ -585,7 +585,8 @@ class SyncHandler(BaseHandler):
|
|||
sync_config, leave_event, since_token, tags_by_room,
|
||||
account_data_by_room
|
||||
)
|
||||
archived.append(room_sync)
|
||||
if room_sync:
|
||||
archived.append(room_sync)
|
||||
|
||||
invited = [
|
||||
InvitedSyncResult(room_id=event.room_id, invite=event)
|
||||
|
@ -726,6 +727,9 @@ class SyncHandler(BaseHandler):
|
|||
|
||||
leave_token = since_token.copy_and_replace("room_key", stream_token)
|
||||
|
||||
if since_token.is_after(leave_token):
|
||||
defer.returnValue(None)
|
||||
|
||||
batch = yield self.load_filtered_recents(
|
||||
leave_event.room_id, sync_config, leave_token, since_token,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue