diff options
Diffstat (limited to 'synapse/storage/databases/main/group_server.py')
-rw-r--r-- | synapse/storage/databases/main/group_server.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/group_server.py b/synapse/storage/databases/main/group_server.py index 380db3a3f3..95d9868c3c 100644 --- a/synapse/storage/databases/main/group_server.py +++ b/synapse/storage/databases/main/group_server.py @@ -1038,6 +1038,14 @@ class GroupServerStore(GroupServerWorkerStore): "remove_user_from_group", _remove_user_from_group_txn ) + def change_user_admin_in_group(self, group_id, user_id, is_admin): + return self.db_pool.simple_update( + table="group_users", + keyvalues={"group_id": group_id, "user_id": user_id}, + updatevalues={"is_admin": is_admin}, + desc="change_user_admin_in_group" + ) + def add_room_to_group(self, group_id, room_id, is_public): return self.db_pool.simple_insert( table="group_rooms", |