Various fixes

This commit is contained in:
Ilya Laktyushin
2024-06-28 16:05:45 +04:00
parent 8e8f997021
commit ed8f1b35e9
9 changed files with 94 additions and 82 deletions

View File

@@ -30,6 +30,7 @@ import ChatListUI
import StoryContainerScreen
import ChatMessageNotificationItem
import PhoneNumberFormat
import AttachmentUI
final class UnauthorizedApplicationContext {
let sharedContext: SharedAccountContextImpl
@@ -436,6 +437,10 @@ final class AuthorizedApplicationContext {
return false
}
if let topContoller = strongSelf.rootController.topViewController as? AttachmentController {
topContoller.minimizeIfNeeded()
}
for controller in strongSelf.rootController.viewControllers {
if let controller = controller as? ChatControllerImpl, controller.chatLocation.peerId == chatLocation.peerId, (controller.chatLocation.threadId == nil || controller.chatLocation.threadId == chatLocation.threadId) {
return true