Last Owner should edit admins, and not leave when is last (#4372)

This commit is contained in:
Mauro
2025-08-07 10:40:14 +02:00
committed by GitHub
parent be525e6a60
commit 5ab6f90863
67 changed files with 691 additions and 363 deletions
@@ -17,12 +17,16 @@ enum RoomRolesAndPermissionsScreenViewModelAction {
}
struct RoomRolesAndPermissionsScreenViewState: BindableState {
var ownRole: RoomRole
var administratorsAndOwnersCount: Int?
/// The number of administrators in the room.
var administratorCount: Int?
/// The number of moderators in the room.
var moderatorCount: Int?
/// The permissions of the room when loaded.
var permissions: RoomPermissions?
var bindings = RoomRolesAndPermissionsScreenViewStateBindings()
}
@@ -46,7 +50,7 @@ enum RoomRolesAndPermissionsScreenViewAction {
case reset
}
enum RoomRolesAndPermissionsScreenRole {
enum RoomRolesAndPermissionsScreenRole: Hashable {
case administrators
case moderators
}