update rooms.py and main.py

This commit is contained in:
ben
2026-08-17 17:29:39 +02:00
parent a585a6fa17
commit 996372c89b
2 changed files with 65 additions and 1 deletions
+12 -1
View File
@@ -325,4 +325,15 @@ def remove_room_member(room_id, user_id):
(room_id, user_id)
)
return True
return True
def update_member_role(room_id, user_id, role):
execute(
"""
UPDATE room_members
SET role = ?
WHERE room_id = ?
AND user_id = ?
""",
(role, room_id, user_id),
)