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

Commit fe678a0

Browse files
authored
Merge pull request #7035 from matrix-org/babolivier/hide_dummy_events
Hide extremities dummy events from clients
2 parents 1389277 + 83b6c69 commit fe678a0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

changelog.d/7035.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a bug causing `org.matrix.dummy_event` to be included in responses from `/sync`.

synapse/visibility.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ def allowed(event):
119119
120120
the original event if they can see it as normal.
121121
"""
122+
if event.type == "org.matrix.dummy_event":
123+
return None
124+
122125
if not event.is_state() and event.sender in ignore_list:
123126
return None
124127

0 commit comments

Comments
 (0)