Start application service stream token tracking from 1 (#12193)

Co-authored-by: Erik Johnston <erik@matrix.org>
This commit is contained in:
Andrew Morgan 2022-03-30 12:10:12 +01:00 committed by GitHub
parent 9b67715bc3
commit c8cbd66d3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View file

@ -1625,7 +1625,7 @@ class PresenceEventSource(EventSource[int, UserPresenceState]):
# We'll actually pull the presence updates for these users at the end.
interested_and_updated_users: Union[Set[str], FrozenSet[str]] = set()
if from_key:
if from_key is not None:
# First get all users that have had a presence update
updated_users = stream_change_cache.get_all_entities_changed(from_key)