testing the switch from banned to members when there are no more banned members

This commit is contained in:
Mauro Romito
2025-11-21 20:54:05 +01:00
committed by Mauro
parent 26add890d6
commit 414b3ac815
3 changed files with 22 additions and 2 deletions
@@ -105,7 +105,7 @@ class RoomMembersListScreenViewModel: RoomMembersListScreenViewModelType, RoomMe
self.currentUserProxy = members.first { $0.userID == roomProxy.ownUserID }
var newBindings = state.bindings
if state.bindings.mode == .banned, roomMembersDetails.bannedMembers.count == 0 {
if roomMembersDetails.bannedMembers.count == 0 {
newBindings.mode = .members
}
self.state = .init(joinedMembersCount: roomProxy.infoPublisher.value.joinedMembersCount,