Skip to content
Snippets Groups Projects
Commit 585972b5 authored by Erik Johnston's avatar Erik Johnston
Browse files

Don't generate group attestations for local users

parent f009df23
No related branches found
No related tags found
No related merge requests found
......@@ -609,6 +609,8 @@ class GroupsServerHandler(object):
raise SynapseError(403, "User not invited to group")
if not self.hs.is_mine_id(user_id):
local_attestation = self.attestations.create_attestation(group_id, user_id)
remote_attestation = content["attestation"]
yield self.attestations.verify_attestation(
......@@ -617,10 +619,9 @@ class GroupsServerHandler(object):
group_id=group_id,
)
else:
local_attestation = None
remote_attestation = None
local_attestation = self.attestations.create_attestation(group_id, user_id)
is_public = _parse_visibility_from_contents(content)
yield self.store.add_user_to_group(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment