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

Hide extremities dummy events from clients #7035

Merged
merged 2 commits into from
Mar 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/7035.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug causing `org.matrix.dummy_event` to be included in responses from `/sync`.
3 changes: 3 additions & 0 deletions synapse/visibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def allowed(event):

the original event if they can see it as normal.
"""
if event.type == "org.matrix.dummy_event":
return None

if not event.is_state() and event.sender in ignore_list:
return None

Expand Down