diff options
author | Erik Johnston <erik@matrix.org> | 2020-09-29 21:48:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 21:48:33 +0100 |
commit | ea70f1c362dc4bd6c0f8a67e16ed0971fe095e5b (patch) | |
tree | 83a37ad1ffa3e1432dc4ca281a0cfec5ed600445 /synapse/handlers/device.py | |
parent | Update description of server_name config option (#8415) (diff) | |
download | synapse-ea70f1c362dc4bd6c0f8a67e16ed0971fe095e5b.tar.xz |
Various clean ups to room stream tokens. (#8423)
Diffstat (limited to 'synapse/handlers/device.py')
-rw-r--r-- | synapse/handlers/device.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py index 4149520d6c..b9d9098104 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py @@ -29,7 +29,6 @@ from synapse.api.errors import ( from synapse.logging.opentracing import log_kv, set_tag, trace from synapse.metrics.background_process_metrics import run_as_background_process from synapse.types import ( - RoomStreamToken, StreamToken, get_domain_from_id, get_verify_key_from_cross_signing_key, @@ -113,8 +112,7 @@ class DeviceWorkerHandler(BaseHandler): set_tag("user_id", user_id) set_tag("from_token", from_token) - now_room_id = self.store.get_room_max_stream_ordering() - now_room_key = RoomStreamToken(None, now_room_id) + now_room_key = self.store.get_room_max_token() room_ids = await self.store.get_rooms_for_user(user_id) |