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

Commit

Permalink
Merge pull request #7035 from matrix-org/babolivier/hide_dummy_events
Browse files Browse the repository at this point in the history
Hide extremities dummy events from clients
  • Loading branch information
babolivier authored Mar 5, 2020
2 parents 1389277 + 83b6c69 commit fe678a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit fe678a0

Please sign in to comment.