Final changes for Room Moderation (#2576)

* Add confirmation that the user would like to discard unsaved changes.

* Update string on permissions screen.

* Fix UI tests and update snapshots.

* Fix integration tests.

* Run periphery for Moderation feature.
This commit is contained in:
Doug
2024-03-15 13:41:23 +00:00
committed by GitHub
parent 668c5188fb
commit 3ba34c0704
29 changed files with 84 additions and 47 deletions
@@ -89,6 +89,8 @@ struct RoomChangeRolesScreenViewStateBindings {
enum RoomChangeRolesScreenAlertType {
/// A warning that a particular promotion can't be undone.
case promotionWarning
/// A confirmation that the user would like to discard any unsaved changes.
case discardChanges
/// The generic error message.
case error
}
@@ -100,4 +102,6 @@ enum RoomChangeRolesScreenViewAction {
case demoteMember(RoomMemberDetails)
/// Save all the changes that the user has made.
case save
/// Discard any changes and hide the screen.
case cancel
}