mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
fix for leaving a space with no joined rooms showing the incorrect subtitle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user