mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user