diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-19 14:26:58 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-19 14:26:58 +0000 |
commit | b8518ffe654d2ee40b0f51983fbb425bbf03e544 (patch) | |
tree | 9df93b499dbcd04f2586ab5fb1e998ca2be75785 /synapse/handlers | |
parent | Return don't break (diff) | |
download | synapse-b8518ffe654d2ee40b0f51983fbb425bbf03e544.tar.xz |
Use all_ephemeral_by_room in incremental_sync_with_gap_for_room
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/sync.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 66e57bd4d6..d2864977b0 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -588,7 +588,8 @@ class SyncHandler(BaseHandler): for room_id in joined_room_ids: room_sync = yield self.incremental_sync_with_gap_for_room( room_id, sync_config, since_token, now_token, - ephemeral_by_room, tags_by_room, account_data_by_room + ephemeral_by_room, tags_by_room, account_data_by_room, + all_ephemeral_by_room=all_ephemeral_by_room, ) if room_sync: joined.append(room_sync) @@ -668,7 +669,8 @@ class SyncHandler(BaseHandler): def incremental_sync_with_gap_for_room(self, room_id, sync_config, since_token, now_token, ephemeral_by_room, tags_by_room, - account_data_by_room): + account_data_by_room, + all_ephemeral_by_room): """ Get the incremental delta needed to bring the client up to date for the room. Gives the client the most recent events and the changes to state. @@ -703,7 +705,7 @@ class SyncHandler(BaseHandler): state = yield self.get_state_at(room_id, now_token) notifs = yield self.unread_notifs_for_room_id( - room_id, sync_config, ephemeral_by_room + room_id, sync_config, all_ephemeral_by_room ) notif_count = None |