mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 03:58:06 +03:00
Handle both cases
This commit is contained in:
parent
569d884543
commit
29bd79728d
1 changed files with 6 additions and 0 deletions
|
@ -161,6 +161,12 @@ def get_rooms(from_token: SlidingSyncStreamToken) -> None:
|
|||
ORDER BY COALESCE(j.event_stream_ordering, s.stream_ordering) DESC
|
||||
"""
|
||||
|
||||
if from_token:
|
||||
# Calculate what has changed.
|
||||
...
|
||||
else:
|
||||
...
|
||||
|
||||
# TODO: Handle the event_stream_ordering returned being above the `to_token`.
|
||||
|
||||
# We can now sort and cap the rooms, noting if there have been changes
|
||||
|
|
Loading…
Reference in a new issue