diff options
author | Erik Johnston <erik@matrix.org> | 2016-03-15 15:03:00 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-03-15 15:03:00 +0000 |
commit | 91779b49c4574e6ff6a9636999f40da62472036d (patch) | |
tree | 80066c8d52c7f7896ff88bbe4fee8fb4cd113d12 /synapse/handlers | |
parent | Merge pull request #645 from matrix-org/erikj/3pid_guest_config (diff) | |
parent | Remove needless PreserveLoggingContext (diff) | |
download | synapse-91779b49c4574e6ff6a9636999f40da62472036d.tar.xz |
Merge pull request #646 from matrix-org/erikj/reject_invite_federation
Persist rejection of invites over federation
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/federation.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 27f2b40bfe..f599e817aa 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -813,7 +813,22 @@ class FederationHandler(BaseHandler): target_hosts, signed_event ) - defer.returnValue(None) + + context = yield self.state_handler.compute_event_context(event) + + event_stream_id, max_stream_id = yield self.store.persist_event( + event, + context=context, + backfilled=False, + ) + + target_user = UserID.from_string(event.state_key) + self.notifier.on_new_room_event( + event, event_stream_id, max_stream_id, + extra_users=[target_user], + ) + + defer.returnValue(event) @defer.inlineCallbacks def _make_and_verify_event(self, target_hosts, room_id, user_id, membership, |