mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Even more space tweaks (#4588)
* Bring back the button to share a space on iOS 26. * Remove the setting and disable the space tab on iOS 17. (The tab bar is broken on iPadOS 17).
This commit is contained in:
@@ -118,11 +118,12 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
|
||||
}
|
||||
|
||||
func setFilter(_ filter: RoomSummaryProviderFilter) {
|
||||
let baseFilter: [RoomListEntriesDynamicFilterKind] = if appSettings.spacesEnabled {
|
||||
let baseFilter: [RoomListEntriesDynamicFilterKind] = if #available(iOS 18.0, *) {
|
||||
[.any(filters: [.all(filters: [.nonSpace, .nonLeft]),
|
||||
.all(filters: [.space, .invite])]),
|
||||
.deduplicateVersions]
|
||||
} else {
|
||||
// Don't show space invites on iOS 17 given that the tab bar is disabled due to glitches on iPad.
|
||||
[.nonLeft, .nonSpace, .deduplicateVersions]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user