Skip to content

Commit

Permalink
Comment always_return_bump_stamp
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Oct 8, 2024
1 parent 8b0dac3 commit cc3a1d4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion synapse/handlers/sliding_sync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,8 +1053,16 @@ async def get_room_sync_data(
bump_stamp = None

always_return_bump_stamp = (
# We use the membership event position for any non-join
room_membership_for_user_at_to_token.membership != Membership.JOIN
or limited is not False
# We didn't fetch any timeline events but we should still check for
# a bump_stamp that might be somewhere
or limited is None
# There might be a bump event somewhere before the timeline events
# that we fetched, that we didn't previously send down
or limited is True
# Always give the client some frame of reference if this is the
# first time they are seeing the room down the connection
or initial
)

Expand Down

0 comments on commit cc3a1d4

Please sign in to comment.