New App Layout: Added missing empty states in room list and space bottom sheet

- make breadcrumbs visible accordingly with the all chats layout options
This commit is contained in:
Gil Eluard
2022-08-19 23:19:16 +02:00
parent 74454d11cb
commit 9152dfb116
@@ -140,7 +140,7 @@ public class RecentsListService: NSObject, RecentsListServiceProtocol {
if space != nil, let fetcher = suggestedRoomListDataFetcher, fetcherTypes.contains(.suggested) {
result.append(fetcher)
}
if let fetcher = breadcrumbsRoomListDataFetcher, fetcherTypes.contains(.breadcrumbs) {
if let fetcher = breadcrumbsRoomListDataFetcher, fetcherTypes.contains(.breadcrumbs), shouldShowBreadcrumbs {
result.append(fetcher)
}
if let fetcher = allChatsRoomListDataFetcher, fetcherTypes.contains(.allChats) {
@@ -493,7 +493,7 @@ public class RecentsListService: NSObject, RecentsListServiceProtocol {
}
private var shouldShowBreadcrumbs: Bool {
return fetcherTypesForMode[mode]?.contains(.breadcrumbs) ?? false
return AllChatsLayoutSettingsManager.shared.allChatLayoutSettings.sections.contains(.recents) && (fetcherTypesForMode[mode]?.contains(.breadcrumbs) ?? false)
}
private var shouldShowAllChats: Bool {