App Layout: Removed Low Priority Rooms from Filters

This commit is contained in:
Gil Eluard
2022-08-25 11:30:11 +02:00
parent 3c1a32812f
commit aca89e86dc
3 changed files with 8 additions and 2 deletions
@@ -132,7 +132,7 @@ public class RecentsListService: NSObject, RecentsListServiceProtocol {
if let fetcher = conversationRoomListDataFetcherForRooms, fetcherTypes.contains(.conversationRooms) {
result.append(fetcher)
}
if let fetcher = lowPriorityRoomListDataFetcher, fetcherTypes.contains(.lowPriority) {
if let fetcher = lowPriorityRoomListDataFetcher, fetcherTypes.contains(.lowPriority), shouldShowLowPriority {
result.append(fetcher)
}
if let fetcher = serverNoticeRoomListDataFetcher, fetcherTypes.contains(.serverNotice) {
@@ -482,7 +482,7 @@ public class RecentsListService: NSObject, RecentsListServiceProtocol {
}
private var shouldShowLowPriority: Bool {
return fetcherTypesForMode[mode]?.contains(.lowPriority) ?? false
return ((mode != .allChats) || !AllChatsLayoutSettingsManager.shared.hasAnActiveFilter) && fetcherTypesForMode[mode]?.contains(.lowPriority) ?? false
}
private var shouldShowServerNotice: Bool {