Skip to content

Commit

Permalink
Rename arg to check_outside_timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Oct 8, 2024
1 parent 4aa1ffa commit 8b0dac3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions synapse/handlers/sliding_sync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ async def get_room_sync_data(
room_id,
to_token,
timeline_events,
check_non_timeline=always_return_bump_stamp,
check_outside_timeline=always_return_bump_stamp,
)
if new_bump_stamp is not None:
bump_stamp = new_bump_stamp
Expand Down Expand Up @@ -1172,7 +1172,7 @@ async def _get_bump_stamp(
room_id: str,
to_token: StreamToken,
timeline: List[EventBase],
check_non_timeline: bool,
check_outside_timeline: bool,
) -> Optional[int]:
"""Get a bump stamp for the room, if we have a bump event and it has
changed.
Expand All @@ -1182,7 +1182,7 @@ async def _get_bump_stamp(
to_token: The upper bound of token to return
timeline: The list of events we have fetched.
limited: If the timeline was limited.
check_non_timeline: Whether we need to check for bump stamp for
check_outside_timeline: Whether we need to check for bump stamp for
events before the timeline if we didn't find a bump stamp in
the timeline events.
"""
Expand All @@ -1204,7 +1204,7 @@ async def _get_bump_stamp(
if new_bump_stamp > 0:
return new_bump_stamp

if not check_non_timeline:
if not check_outside_timeline:
# If we are not a limited sync, then we know the bump stamp can't
# have changed.
return None
Expand Down

0 comments on commit 8b0dac3

Please sign in to comment.