synapse/handlers/groups_local.py
def user_removed_from_group(self, group_id, user_id, content):
        """One of our users was removed/kicked from a group
        """
        # TODO: Check if user in group
        token = yield self.store.register_user_group_membership(
            group_id, user_id,
            membership="leave",
        )
        self.notifier.on_new_event(
            "groups_key", token, users=[user_id],
        )
One of our users was removed/kicked from a group
        
One of our users was removed/kicked from a group
One of our users was removed / kicked from a group
def user_removed_from_group(self, group_id, user_id, content):
        token = yield self.store.register_user_group_membership(
            group_id, user_id,
            membership="leave",
        )
        self.notifier.on_new_event(
            "groups_key", token, users=[user_id],
        )
def user_removed_from_group ( self , group_id , user_id , content ) : token = yield self . store . register_user_group_membership ( group_id , user_id , membership = "leave" , ) self . notifier . on_new_event ( "groups_key" , token , users = [ user_id ] , )
One of our users was removed/kicked from a group
One of our users was removed / kicked from a group
"""One of our users was removed/kicked from a group
        """ # TODO: Check if user in group
self
group_id
user_id
content