Add '/event_auth/' federation api

This commit is contained in:
Erik Johnston 2014-11-07 15:35:53 +00:00
parent d2fb2b8095
commit 02c3b1c9e2
4 changed files with 55 additions and 7 deletions

View file

@ -224,6 +224,11 @@ class FederationHandler(BaseHandler):
defer.returnValue(self.pdu_codec.event_from_pdu(pdu))
@defer.inlineCallbacks
def on_event_auth(self, event_id):
auth = yield self.store.get_auth_chain(event_id)
defer.returnValue([self.pdu_codec.pdu_from_event(e) for e in auth])
@log_function
@defer.inlineCallbacks
def do_invite_join(self, target_host, room_id, joinee, content, snapshot):