Various improvements

This commit is contained in:
Ilya Laktyushin
2024-09-03 18:26:47 +04:00
parent 7e57a166dc
commit 3cdfb2031d
5 changed files with 36 additions and 6 deletions

View File

@@ -387,6 +387,7 @@ extension ChatControllerImpl {
|> take(1)
|> deliverOnMainQueue).startStrict(next: { [weak self] peerView in
if let strongSelf = self, let peer = peerView.peers[peerView.peerId], peer.restrictionText(platform: "ios", contentSettings: strongSelf.context.currentContentSettings.with { $0 }) == nil && !strongSelf.presentationInterfaceState.isNotAccessible {
if peer.id == strongSelf.context.account.peerId {
if let peer = strongSelf.presentationInterfaceState.renderedPeer?.chatMainPeer, let infoController = strongSelf.context.sharedContext.makePeerInfoController(context: strongSelf.context, updatedPresentationData: strongSelf.updatedPresentationData, peer: peer, mode: .generic, avatarInitiallyExpanded: false, fromChat: true, requestsContext: nil) {
strongSelf.effectiveNavigationController?.pushViewController(infoController)
@@ -403,6 +404,8 @@ extension ChatControllerImpl {
strongSelf.effectiveNavigationController?.pushViewController(infoController)
}
}
strongSelf.dismissPreviewing?()
}
}))
case .replyThread: