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

Commit

Permalink
Merge pull request #646 from matrix-org/erikj/reject_invite_federation
Browse files Browse the repository at this point in the history
Persist rejection of invites over federation
  • Loading branch information
erikjohnston committed Mar 15, 2016
2 parents 6b1e9b8 + e5f0e58 commit 91779b4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,22 @@ def do_remotely_reject_invite(self, target_hosts, room_id, user_id):
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,
Expand Down

0 comments on commit 91779b4

Please sign in to comment.