mirror of
https://github.com/element-hq/synapse
synced 2024-09-05 15:20:07 +00:00
Merge pull request #7035 from matrix-org/babolivier/hide_dummy_events
Hide extremities dummy events from clients
This commit is contained in:
commit
fe678a0900
2 changed files with 4 additions and 0 deletions
1
changelog.d/7035.bugfix
Normal file
1
changelog.d/7035.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix a bug causing `org.matrix.dummy_event` to be included in responses from `/sync`.
|
|
@ -119,6 +119,9 @@ def filter_events_for_client(
|
||||||
|
|
||||||
the original event if they can see it as normal.
|
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:
|
if not event.is_state() and event.sender in ignore_list:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue