fix for leaving a space with no joined rooms showing the incorrect subtitle

This commit is contained in:
Mauro Romito
2025-12-18 12:26:20 +01:00
committed by Mauro
parent b1abb729aa
commit 57cd5dd794
3 changed files with 16 additions and 12 deletions
@@ -42,9 +42,9 @@ final class LeaveSpaceHandleProxy {
mode = if space?.isLastAdmin == true {
.lastSpaceAdmin
} else if rooms.isEmpty {
} else if self.rooms.isEmpty {
.noRooms
} else if rooms.count(where: { !$0.isLastAdmin }) == 0 {
} else if self.rooms.count(where: { !$0.isLastAdmin }) == 0 {
.onlyAdminRooms
} else {
.manyRooms