synapse/groups/groups_server.py
def accept_invite(self, group_id, requester_user_id, content):
        """User tries to accept an invite to the group.

        This is different from them asking to join, and so should error if no
        invite exists (and they're not a member of the group)
        """

        yield self.check_group_is_ours(group_id, requester_user_id, and_exists=True)

        is_invited = yield self.store.is_user_invited_to_local_group(
            group_id, requester_user_id,
        )
        if not is_invited:
            raise SynapseError(403, "User not invited to group")

        local_attestation = yield self._add_user(group_id, requester_user_id, content)

        defer.returnValue({
            "state": "join",
            "attestation": local_attestation,
        })
User tries to accept an invite to the group.

        This is different from them asking to join, and so should error if no
        invite exists (and they're not a member of the group)
        
User tries to accept an invite to the group.
This is different from them asking to join, and so should error if no
invite exists (and they're not a member of the group)
User tries to accept an invite to the group . This is different from them asking to join and so should error if no invite exists ( and they ' re not a member of the group )
def accept_invite(self, group_id, requester_user_id, content):
        yield self.check_group_is_ours(group_id, requester_user_id, and_exists=True)
        is_invited = yield self.store.is_user_invited_to_local_group(
            group_id, requester_user_id,
        )
        if not is_invited:
            raise SynapseError(403, "User not invited to group")
        local_attestation = yield self._add_user(group_id, requester_user_id, content)
        defer.returnValue({
            "state": "join",
            "attestation": local_attestation,
        })
def accept_invite ( self , group_id , requester_user_id , content ) : yield self . check_group_is_ours ( group_id , requester_user_id , and_exists = True ) is_invited = yield self . store . is_user_invited_to_local_group ( group_id , requester_user_id , ) if not is_invited : raise SynapseError ( 403 , "User not invited to group" ) local_attestation = yield self . _add_user ( group_id , requester_user_id , content ) defer . returnValue ( { "state" : "join" , "attestation" : local_attestation , } )
User tries to accept an invite to the group.
User tries to accept an invite to the group .
"""User tries to accept an invite to the group.

        This is different from them asking to join, and so should error if no
        invite exists (and they're not a member of the group)
        """
self
group_id
requester_user_id
content