Rework stream token to stop caring about groups. (#12897)

This commit is contained in:
Patrick Cloke 2022-05-31 07:42:50 -04:00 committed by GitHub
parent d0e40dfe29
commit e541bb9eed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View file

@ -54,7 +54,6 @@ class EventSources:
push_rules_key = self.store.get_max_push_rules_stream_id()
to_device_key = self.store.get_to_device_stream_token()
device_list_key = self.store.get_device_stream_token()
groups_key = self.store.get_group_stream_token()
token = StreamToken(
room_key=self.sources.room.get_current_key(),
@ -65,7 +64,8 @@ class EventSources:
push_rules_key=push_rules_key,
to_device_key=to_device_key,
device_list_key=device_list_key,
groups_key=groups_key,
# Groups key is unused.
groups_key=0,
)
return token