diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-15 17:01:12 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-15 17:01:12 +0000 |
commit | cf6e5f1dbf3cecf693e45f293535e71ee31801ed (patch) | |
tree | ea0f29cfd9168f1d1a7030ca66372cd42df64eb8 /synapse/handlers/_base.py | |
parent | Remove unused functions (diff) | |
download | synapse-cf6e5f1dbf3cecf693e45f293535e71ee31801ed.tar.xz |
Rename MessageHandler.handle_event. Add a few comments.
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r-- | synapse/handlers/_base.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py index 14f75ecbc2..af8eb5f0f5 100644 --- a/synapse/handlers/_base.py +++ b/synapse/handlers/_base.py @@ -122,10 +122,15 @@ class BaseHandler(object): if event.content["membership"] == Membership.INVITE: invitee = self.hs.parse_userid(event.state_key) if not self.hs.is_mine(invitee): + # TODO: Can we add signature from remote server in a nicer + # way? If we have been invited by a remote server, we need + # to get them to sign the event. returned_invite = yield federation_handler.send_invite( invitee.domain, event, ) + + # TODO: Make sure the signatures actually are correct. event.signatures.update( returned_invite.signatures ) |