synapse/groups/groups_server.py
def update_group_category(self, group_id, requester_user_id, category_id, content):
        """Add/Update a group category
        """
        yield self.check_group_is_ours(
            group_id,
            requester_user_id,
            and_exists=True,
            and_is_admin=requester_user_id,
        )

        is_public = _parse_visibility_from_contents(content)
        profile = content.get("profile")

        yield self.store.upsert_group_category(
            group_id=group_id,
            category_id=category_id,
            is_public=is_public,
            profile=profile,
        )

        defer.returnValue({})
Add/Update a group category
        
Add/Update a group category
Add / Update a group category
def update_group_category(self, group_id, requester_user_id, category_id, content):
        yield self.check_group_is_ours(
            group_id,
            requester_user_id,
            and_exists=True,
            and_is_admin=requester_user_id,
        )
        is_public = _parse_visibility_from_contents(content)
        profile = content.get("profile")
        yield self.store.upsert_group_category(
            group_id=group_id,
            category_id=category_id,
            is_public=is_public,
            profile=profile,
        )
        defer.returnValue({})
def update_group_category ( self , group_id , requester_user_id , category_id , content ) : yield self . check_group_is_ours ( group_id , requester_user_id , and_exists = True , and_is_admin = requester_user_id , ) is_public = _parse_visibility_from_contents ( content ) profile = content . get ( "profile" ) yield self . store . upsert_group_category ( group_id = group_id , category_id = category_id , is_public = is_public , profile = profile , ) defer . returnValue ( { } )
Add/Update a group category
Add / Update a group category
"""Add/Update a group category
        """
self
group_id
requester_user_id
category_id
content