mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
* Fail to open a sub space #5965 - Fixed
This commit is contained in:
@@ -723,8 +723,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