mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 22:44:49 -04:00
Add types to StreamToken and RoomStreamToken (#8279)
The intention here is to change `StreamToken.room_key` to be a `RoomStreamToken` in a future PR, but that is a big enough change without this refactoring too.
This commit is contained in:
parent
094896a69d
commit
63c0e9e195
5 changed files with 95 additions and 91 deletions
|
@ -1310,12 +1310,11 @@ class SyncHandler:
|
|||
presence_source = self.event_sources.sources["presence"]
|
||||
|
||||
since_token = sync_result_builder.since_token
|
||||
presence_key = None
|
||||
include_offline = False
|
||||
if since_token and not sync_result_builder.full_state:
|
||||
presence_key = since_token.presence_key
|
||||
include_offline = True
|
||||
else:
|
||||
presence_key = None
|
||||
include_offline = False
|
||||
|
||||
presence, presence_key = await presence_source.get_new_events(
|
||||
user=user,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue