0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 10:43:50 +01:00

Merge pull request #7035 from matrix-org/babolivier/hide_dummy_events

Hide extremities dummy events from clients
This commit is contained in:
Brendan Abolivier 2020-03-05 10:51:19 +00:00 committed by GitHub
commit fe678a0900
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

1
changelog.d/7035.bugfix Normal file
View file

@ -0,0 +1 @@
Fix a bug causing `org.matrix.dummy_event` to be included in responses from `/sync`.

View file

@ -119,6 +119,9 @@ def filter_events_for_client(
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