mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 13:46:57 +02:00
Merge branch 'master' of https://github.com/vector-im/element-ios into feature/3269_merge_element_1_8_18
# Conflicts: # Config/AppIdentifiers.xcconfig # Config/AppVersion.xcconfig # Podfile # Podfile.lock # Riot/Assets/de.lproj/Vector.strings # Riot/Generated/Images.swift # Riot/Modules/Analytics/DecryptionFailureTracker.m # Riot/Modules/Application/LegacyAppDelegate.h # Riot/Modules/Onboarding/OnboardingCoordinator.swift # Riot/Modules/Room/RoomInfo/RoomInfoList/RoomInfoListViewController.swift # Riot/Modules/Room/RoomViewController.m # Riot/SupportingFiles/Info.plist # Riot/Utils/EventFormatter.m # Riot/Utils/Tools.h # Riot/Utils/Tools.m # Riot/target.yml # RiotSwiftUI/Modules/Common/Mock/MockAppScreens.swift # fastlane/Fastfile # project.yml
This commit is contained in:
@@ -758,8 +758,24 @@
|
||||
- (void)filterRoomsWithParentId:(NSString*)roomParentId
|
||||
inMatrixSession:(MXSession*)mxSession
|
||||
{
|
||||
titleView.subtitleLabel.text = roomParentId ? [mxSession roomSummaryWithRoomId:roomParentId].displayname : nil;
|
||||
if (roomParentId) {
|
||||
NSString *parentName = [mxSession roomSummaryWithRoomId:roomParentId].displayname;
|
||||
NSMutableArray<NSString *> *breadcrumbs = [[NSMutableArray alloc] initWithObjects:parentName, nil];
|
||||
|
||||
MXSpace *firstRootAncestor = roomParentId ? [mxSession.spaceService firstRootAncestorForRoomWithId:roomParentId] : nil;
|
||||
NSString *rootName = nil;
|
||||
if (firstRootAncestor)
|
||||
{
|
||||
rootName = [mxSession roomSummaryWithRoomId:firstRootAncestor.spaceId].displayname;
|
||||
[breadcrumbs insertObject:rootName atIndex:0];
|
||||
}
|
||||
titleView.breadcrumbView.breadcrumbs = breadcrumbs;
|
||||
}
|
||||
else
|
||||
{
|
||||
titleView.breadcrumbView.breadcrumbs = @[];
|
||||
}
|
||||
|
||||
recentsDataSource.currentSpace = [mxSession.spaceService getSpaceWithId:roomParentId];
|
||||
[self updateSideMenuNotifcationIcon];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user