Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Rely on existing newly-joined room logic
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Jan 20, 2023
1 parent 0bd54de commit 45b2cc6
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -2150,17 +2150,7 @@ async def _get_room_changes_for_incremental_sync(
room_entry = room_to_events.get(room_id, None)

newly_joined = room_id in newly_joined_rooms
if room_id in sync_result_builder.retransmit_room_ids:
entry = RoomSyncResultBuilder(
room_id=room_id,
rtype="joined",
events=None,
newly_joined=True,
full_state=True,
since_token=None,
upto_token=now_token,
)
elif room_entry:
if room_entry:
events, start_key = room_entry

prev_batch_token = now_token.copy_and_replace(
Expand Down

0 comments on commit 45b2cc6

Please sign in to comment.