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:
@@ -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,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user