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

Commit

Permalink
filter out m.room.aliases from /sync state blocks (#6884)
Browse files Browse the repository at this point in the history
We forgot to filter out aliases from /sync state blocks as well as the timeline.
  • Loading branch information
ara4n authored Feb 10, 2020
1 parent 3de57e7 commit 0120938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/6884.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Filter out m.room.aliases from /sync state blocks until a full fix lands.
1 change: 1 addition & 0 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ async def compute_state_delta(
for e in sync_config.filter_collection.filter_room_state(
list(state.values())
)
if e.type != EventTypes.Aliases # until MSC2261 or alternative solution
}

async def unread_notifs_for_room_id(self, room_id, sync_config):
Expand Down

0 comments on commit 0120938

Please sign in to comment.