Skip to content

Commit

Permalink
Update All chats screen with latest design #6407
Browse files Browse the repository at this point in the history
- Code cleanup
  • Loading branch information
gileluard committed Jul 25, 2022
1 parent bb12f9a commit 7d2b5ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Riot/Modules/TabBar/MasterTabBarController.m
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,8 @@ - (void)filterRoomsWithParentId:(NSString*)roomParentId
{
if (roomParentId) {
NSString *parentName = [mxSession roomSummaryWithRoomId:roomParentId].displayname;
if (BuildSettings.newAppLayoutEnaled) {
// self.title = parentName;
} else {
if (!BuildSettings.newAppLayoutEnaled)
{
NSMutableArray<NSString *> *breadcrumbs = [[NSMutableArray alloc] initWithObjects:parentName, nil];

MXSpace *firstRootAncestor = roomParentId ? [mxSession.spaceService firstRootAncestorForRoomWithId:roomParentId] : nil;
Expand All @@ -666,9 +665,8 @@ - (void)filterRoomsWithParentId:(NSString*)roomParentId
}
else
{
if (BuildSettings.newAppLayoutEnaled) {
// self.title = VectorL10n.allChatsTitle;
} else {
if (!BuildSettings.newAppLayoutEnaled)
{
titleView.breadcrumbView.breadcrumbs = @[];
}
}
Expand All @@ -679,6 +677,8 @@ - (void)filterRoomsWithParentId:(NSString*)roomParentId

- (void)updateSideMenuNotifcationIcon
{
if (BuildSettings.newAppLayoutEnaled) { return; }

BOOL displayNotification = NO;

for (MXRoomSummary *summary in recentsDataSource.mxSession.spaceService.rootSpaceSummaries) {
Expand Down

0 comments on commit 7d2b5ab

Please sign in to comment.