mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 19:10:49 +02:00
Simplify empty view logic
This commit is contained in:
@@ -2217,7 +2217,13 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
|
||||
|
||||
- (BOOL)shouldShowEmptyView
|
||||
{
|
||||
return NO;
|
||||
// Do not present empty screen while searching
|
||||
if (self.recentsDataSource.searchPatternsList.count)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
return self.recentsDataSource.totalVisibleItemCount == 0;
|
||||
}
|
||||
|
||||
#pragma mark - RoomsDirectoryCoordinatorBridgePresenterDelegate
|
||||
|
||||
Reference in New Issue
Block a user