feat: warn self change on roles settings (#28926)

* feat: warn self change on roles settings

* test: update RolesRoomSettingsTab to match new modal condition

* test: update e2e RolesRoomSettingsTab to add new modal

* feat: powerlevelselector reput initial value if cancel
This commit is contained in:
Marc
2025-04-17 08:58:27 +00:00
committed by GitHub
parent fd455179f7
commit 4f32727829
4 changed files with 99 additions and 2 deletions
@@ -224,6 +224,9 @@ describe("RolesRoomSettingsTab", () => {
content: {
users: {
[cli.getUserId()!]: 100,
// needs at least one remaning admin in the room if we want to demote our user
// otherwise another modal will be displayed
["@admin:server"]: 100,
},
},
});