diff --git a/Riot/Modules/TabBar/MasterTabBarController.h b/Riot/Modules/TabBar/MasterTabBarController.h index 6ef661948..dbe2db2be 100644 --- a/Riot/Modules/TabBar/MasterTabBarController.h +++ b/Riot/Modules/TabBar/MasterTabBarController.h @@ -152,6 +152,13 @@ - (void)presentReviewUnverifiedSessionsAlertIfNeededWithSession:(MXSession*)session; +/// Filter rooms for each tab data source with the given room parent id. +/// It should keep rooms having an ancestor with `roomParentId` as parent id. +/// @param roomParentId The room parent id used to filter rooms. +/// @param mxSession The matrix session in which the room filtering should be done. +- (void)filterRoomsWithParentId:(NSString*)roomParentId + inMatrixSession:(MXSession*)mxSession; + // Reference to the current auth VC. It is not nil only when the auth screen is displayed. @property (nonatomic, readonly) AuthenticationViewController *authViewController; diff --git a/Riot/Modules/TabBar/MasterTabBarController.m b/Riot/Modules/TabBar/MasterTabBarController.m index 60ff2441c..33f9760ac 100644 --- a/Riot/Modules/TabBar/MasterTabBarController.m +++ b/Riot/Modules/TabBar/MasterTabBarController.m @@ -760,6 +760,13 @@ return foundViewController; } +- (void)filterRoomsWithParentId:(NSString*)roomParentId + inMatrixSession:(MXSession*)mxSession +{ + // TODO: Update recentsDataSource in order to keep only rooms with given parent id. + // When updating the data source, if needed, screens should also update their title view subtitle with the space name +} + #pragma mark - /**