synapse/handlers/groups_local.py
def _create_rerouter(func_name):
    """Returns a function that looks at the group id and calls the function
    on federation or the local group server if the group is local
    """
    def f(self, group_id, *args, **kwargs):
        if self.is_mine_id(group_id):
            return getattr(self.groups_server_handler, func_name)(
                group_id, *args, **kwargs
            )
        else:
            destination = get_domain_from_id(group_id)
            return getattr(self.transport_client, func_name)(
                destination, group_id, *args, **kwargs
            )
    return f
Returns a function that looks at the group id and calls the function
    on federation or the local group server if the group is local
    
Returns a function that looks at the group id and calls the function
on federation or the local group server if the group is local
Returns a function that looks at the group id and calls the function on federation or the local group server if the group is local
def _create_rerouter(func_name):
    def f(self, group_id, *args, **kwargs):
        if self.is_mine_id(group_id):
            return getattr(self.groups_server_handler, func_name)(
                group_id, *args, **kwargs
            )
        else:
            destination = get_domain_from_id(group_id)
            return getattr(self.transport_client, func_name)(
                destination, group_id, *args, **kwargs
            )
    return f
def _create_rerouter ( func_name ) : def f ( self , group_id , * args , ** kwargs ) : if self . is_mine_id ( group_id ) : return getattr ( self . groups_server_handler , func_name ) ( group_id , * args , ** kwargs ) else : destination = get_domain_from_id ( group_id ) return getattr ( self . transport_client , func_name ) ( destination , group_id , * args , ** kwargs ) return f
Returns a function that looks at the group id and calls the function
on federation or the local group server if the group is local
Returns a function that looks at the group id and calls the function on federation or the local group server if the group is local
"""Returns a function that looks at the group id and calls the function
    on federation or the local group server if the group is local
    """
func_name