0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-30 19:54:05 +01:00

Fix fetching remote summaries

This commit is contained in:
Erik Johnston 2017-10-11 16:54:36 +01:00
parent af94ba9d02
commit b752507b48

View file

@ -109,7 +109,7 @@ class GroupsLocalHandler(object):
valid_users = [] valid_users = []
for entry in chunk: for entry in chunk:
g_user_id = entry["user_id"] g_user_id = entry["user_id"]
attestation = entry.pop("attestation") attestation = entry.pop("attestation", {})
try: try:
if get_domain_from_id(g_user_id) != group_server_name: if get_domain_from_id(g_user_id) != group_server_name:
yield self.attestations.verify_attestation( yield self.attestations.verify_attestation(
@ -202,7 +202,7 @@ class GroupsLocalHandler(object):
valid_entries = [] valid_entries = []
for entry in chunk: for entry in chunk:
g_user_id = entry["user_id"] g_user_id = entry["user_id"]
attestation = entry.pop("attestation") attestation = entry.pop("attestation", {})
try: try:
if get_domain_from_id(g_user_id) != group_server_name: if get_domain_from_id(g_user_id) != group_server_name:
yield self.attestations.verify_attestation( yield self.attestations.verify_attestation(