We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48e8ab4 commit 469cb22Copy full SHA for 469cb22
src/server/server.d
@@ -564,15 +564,15 @@ final class Server
564
565
void cancel_room_membership(string room_name, string actor, string target)
566
{
567
- cancel_room_operatorship(room_name, actor, target);
568
-
569
const owner = db.get_room_owner(room_name);
570
if (actor != target && actor != owner) {
571
const actor_type = db.get_room_member_type(room_name, actor);
572
if (actor_type != RoomMemberType.operator)
573
return;
574
}
575
+ cancel_room_operatorship(room_name, actor, target);
+
576
if (!db.del_room_member(room_name, target))
577
578
0 commit comments