Only send events that originate on this server.

Or events that are sent via the federation "send_join" API.

This should match the behaviour from before v0.18.5 and #1635 landed.
This commit is contained in:
Mark Haines 2017-01-05 11:26:30 +00:00
parent 0d766c8ccf
commit f784980d2b
3 changed files with 25 additions and 0 deletions

View file

@ -790,6 +790,10 @@ class FederationHandler(BaseHandler):
)
event.internal_metadata.outlier = False
# Send this event on behalf of the origin server since they may not
# have an up to data view of the state of the room at this event so
# will not know which servers to send the event to.
event.internal_metadata.send_on_behalf_of = origin
context, event_stream_id, max_stream_id = yield self._handle_new_event(
origin, event