synapse/groups/groups_server.py
def update_group_summary_room(self, group_id, requester_user_id,
                                  room_id, category_id, content):
        """Add/update a room to the group summary
        """
        yield self.check_group_is_ours(
            group_id,
            requester_user_id,
            and_exists=True,
            and_is_admin=requester_user_id,
        )

        RoomID.from_string(room_id)  # Ensure valid room id

        order = content.get("order", None)

        is_public = _parse_visibility_from_contents(content)

        yield self.store.add_room_to_summary(
            group_id=group_id,
            room_id=room_id,
            category_id=category_id,
            order=order,
            is_public=is_public,
        )

        defer.returnValue({})
Add/update a room to the group summary
        
Add/update a room to the group summary
Add / update a room to the group summary
def update_group_summary_room(self, group_id, requester_user_id,
                                  room_id, category_id, content):
        yield self.check_group_is_ours(
            group_id,
            requester_user_id,
            and_exists=True,
            and_is_admin=requester_user_id,
        )
        RoomID.from_string(room_id)  
        order = content.get("order", None)
        is_public = _parse_visibility_from_contents(content)
        yield self.store.add_room_to_summary(
            group_id=group_id,
            room_id=room_id,
            category_id=category_id,
            order=order,
            is_public=is_public,
        )
        defer.returnValue({})
def update_group_summary_room ( self , group_id , requester_user_id , room_id , category_id , content ) : yield self . check_group_is_ours ( group_id , requester_user_id , and_exists = True , and_is_admin = requester_user_id , ) RoomID . from_string ( room_id ) order = content . get ( "order" , None ) is_public = _parse_visibility_from_contents ( content ) yield self . store . add_room_to_summary ( group_id = group_id , room_id = room_id , category_id = category_id , order = order , is_public = is_public , ) defer . returnValue ( { } )
Add/update a room to the group summary
Add / update a room to the group summary
"""Add/update a room to the group summary
        """ # Ensure valid room id
self
group_id
requester_user_id
room_id
category_id
content