diff options
author | Erik Johnston <erik@matrix.org> | 2017-03-16 11:51:46 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-03-16 11:54:26 +0000 |
commit | 6957bfdca6658114526033e839ceec38b988a323 (patch) | |
tree | ca9d3fab0eca8945466f37d1d26991cff991ba02 /synapse/handlers/receipts.py | |
parent | Implement no op for room stream in sync (diff) | |
download | synapse-6957bfdca6658114526033e839ceec38b988a323.tar.xz |
Don't recreate so many sets
Diffstat (limited to 'synapse/handlers/receipts.py')
-rw-r--r-- | synapse/handlers/receipts.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/handlers/receipts.py b/synapse/handlers/receipts.py index 50aa513935..e1cd3a48e9 100644 --- a/synapse/handlers/receipts.py +++ b/synapse/handlers/receipts.py @@ -210,10 +210,9 @@ class ReceiptEventSource(object): else: from_key = None - rooms = yield self.store.get_rooms_for_user(user.to_string()) - rooms = [room.room_id for room in rooms] + room_ids = yield self.store.get_rooms_for_user(user.to_string()) events = yield self.store.get_linearized_receipts_for_rooms( - rooms, + room_ids, from_key=from_key, to_key=to_key, ) |