[Spaces] M10.6.1 Handle space link #4498

- Update after code review
This commit is contained in:
Gil Eluard
2021-09-23 17:15:32 +02:00
parent ac5cb33c9c
commit 3a09ee688c
8 changed files with 48 additions and 46 deletions
@@ -94,14 +94,14 @@ extension RoomViewController {
return
}
self.requestSummary(forRoomWithId: roomId, via: viaServers, from: url)
self.requestSummaryAndShowSpaceDetail(forRoomWithId: roomId, via: viaServers, from: url)
}
} else {
self.requestSummary(forRoomWithId: roomIdOrAlias, via: viaServers, from: url)
self.requestSummaryAndShowSpaceDetail(forRoomWithId: roomIdOrAlias, via: viaServers, from: url)
}
}
private func requestSummary(forRoomWithId roomId: String, via: [String], from url: URL?) {
private func requestSummaryAndShowSpaceDetail(forRoomWithId roomId: String, via: [String], from url: URL?) {
if self.mainSession.spaceService.getSpace(withId: roomId) != nil {
self.stopActivityIndicator()
self.showSpaceDetail(withId: roomId)
+1 -2
View File
@@ -2195,7 +2195,6 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
{
[self handleSpaceUniversalLinkWith:universalLinkURL];
return YES;
// return [[AppDelegate theDelegate] handleUniversalLinkURL:universalLinkURL];
}
}
@@ -6487,7 +6486,7 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
{
self.spaceDetailPresenter = [SpaceDetailPresenter new];
self.spaceDetailPresenter.delegate = self;
[self.spaceDetailPresenter presentForSpaceWithSummary:publicRoom from:self sourceView:nil session:self.mainSession animated:YES];
[self.spaceDetailPresenter presentForSpaceWithPublicRoom:publicRoom from:self sourceView:nil session:self.mainSession animated:YES];
}
- (void)showSpaceDetailWithId:(NSString *)spaceId