Begin converting things to use the new Event structure

This commit is contained in:
Erik Johnston 2014-12-04 11:27:59 +00:00
parent 75b4329aaa
commit 5d7c9ab789
8 changed files with 96 additions and 39 deletions

View file

@ -393,18 +393,11 @@ class Auth(object):
if member_event.content["membership"] == Membership.JOIN:
auth_events.append(member_event.event_id)
hashes = yield self.store.get_event_reference_hashes(
auth_events = yield self.store.add_event_hashes(
auth_events
)
hashes = [
{
k: encode_base64(v) for k, v in h.items()
if k == "sha256"
}
for h in hashes
]
defer.returnValue(zip(auth_events, hashes))
defer.returnValue(auth_events)
@log_function
def _can_send_event(self, event, auth_events):