Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Actually hook leave notifs up
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Sep 14, 2017
1 parent 4f845a0 commit 3a0cee2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,8 @@ def generate_sync_result(self, sync_config, since_token=None, full_state=False):
res = yield self._generate_sync_entry_for_rooms(
sync_result_builder, account_data_by_room
)
newly_joined_rooms, newly_joined_users, _, newly_left_users = res
newly_joined_rooms, newly_joined_users, _, _ = res
_, _, newly_left_rooms, newly_left_users = res

block_all_presence_data = (
since_token is None and
Expand All @@ -562,7 +563,7 @@ def generate_sync_result(self, sync_config, since_token=None, full_state=False):
sync_result_builder,
newly_joined_rooms=newly_joined_rooms,
newly_joined_users=newly_joined_users,
newly_left_rooms=[],
newly_left_rooms=newly_left_rooms,
newly_left_users=newly_left_users,
)

Expand Down

0 comments on commit 3a0cee2

Please sign in to comment.