fix: make sure that removing an admin also removes the mod permission

because we cannot currently choose in the app what type of admin/mod we
want, it makes sense that adding/removing changes both permissions
pull/2473/head
Audric Ackermann 3 years ago
parent 89dfe6e49d
commit f1358c4049

@ -285,9 +285,11 @@ const makeBatchRequestPayload = (
json: {
rooms: [options.addRemoveModerators.roomId],
global: false,
// moderator: isAddMod, // currently we only support adding/removing visible admins
visible: true,
admin: isAddMod,
// currently we only support adding/removing visible admins but we still need to set the `moderator`
// permissions here so removing an admin works does not only devote an admin to a moderator
moderator: isAddMod,
},
}));
case 'banUnbanUser':

Loading…
Cancel
Save