mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 05:56:04 -04:00
Fix unit tests
This commit is contained in:
parent
b58a8b1ee0
commit
82631c5f94
2 changed files with 9 additions and 5 deletions
|
@ -629,7 +629,10 @@ class SyncHandler(BaseHandler):
|
|||
room_key = now_token.room_key
|
||||
end_key = room_key
|
||||
|
||||
limited = recents is None or newly_joined_room or timeline_limit < len(recents)
|
||||
if recents is None or newly_joined_room or timeline_limit < len(recents):
|
||||
limited = True
|
||||
else:
|
||||
limited = False
|
||||
|
||||
if recents is not None:
|
||||
recents = sync_config.filter_collection.filter_room_timeline(recents)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue