Conditionally hide room list tabs (#6533)

* Conditionally hide room list tabs
This commit is contained in:
Gil Eluard
2022-08-05 14:56:19 +02:00
committed by GitHub
parent 1a2e6fdb89
commit 099b5e792a
5 changed files with 43 additions and 8 deletions
@@ -66,7 +66,7 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
@property (nonatomic, strong) CrossSigningService *crossSigningService;
@property (nonatomic, strong) AllChatsFilterOptions *allChatsFilterOptions;
@property (nonatomic, strong) UIView *allChatsOptionsView;
@property (nonatomic, strong) AllChatsFilterOptionListView *allChatsOptionsView;
@end
@@ -966,6 +966,10 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
if (self.allChatsOptionsView)
{
[self.allChatsFilterOptions updateWithFilterOptionListView:self.allChatsOptionsView
unreadsCount:1 // unreads is allways visible
favouritesCount:self.favoriteCellDataArray.count
directRoomsCount:self.peopleCellDataArray.count];
return self.allChatsOptionsView;
}
}