synapse/groups/groups_server.py
def join_group(self, group_id, requester_user_id, content):
        """User tries to join the group.

        This will error if the group requires an invite/knock to join
        """

        group_info = yield self.check_group_is_ours(
            group_id, requester_user_id, and_exists=True
        )
        if group_info['join_policy'] != "open":
            raise SynapseError(403, "Group is not publicly joinable")

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

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

        This will error if the group requires an invite/knock to join
        
User tries to join the group.
This will error if the group requires an invite/knock to join
User tries to join the group . This will error if the group requires an invite / knock to join
def join_group(self, group_id, requester_user_id, content):
        group_info = yield self.check_group_is_ours(
            group_id, requester_user_id, and_exists=True
        )
        if group_info['join_policy'] != "open":
            raise SynapseError(403, "Group is not publicly joinable")
        local_attestation = yield self._add_user(group_id, requester_user_id, content)
        defer.returnValue({
            "state": "join",
            "attestation": local_attestation,
        })
def join_group ( self , group_id , requester_user_id , content ) : group_info = yield self . check_group_is_ours ( group_id , requester_user_id , and_exists = True ) if group_info [ 'join_policy' ] != "open" : raise SynapseError ( 403 , "Group is not publicly joinable" ) local_attestation = yield self . _add_user ( group_id , requester_user_id , content ) defer . returnValue ( { "state" : "join" , "attestation" : local_attestation , } )
User tries to join the group.
User tries to join the group .
"""User tries to join the group.

        This will error if the group requires an invite/knock to join
        """
self
group_id
requester_user_id
content