Various fixes

This commit is contained in:
Ilya Laktyushin
2024-06-27 00:41:55 +04:00
parent 022d626000
commit e163bc76a7
5 changed files with 75 additions and 45 deletions

View File

@@ -277,6 +277,13 @@ extension ChatControllerImpl {
}
return EntityInputView(context: strongSelf.context, isDark: false, areCustomEmojiEnabled: strongSelf.presentationInterfaceState.customEmojiAvailable)
})
attachmentController.shouldMinimizeOnSwipe = { [weak attachmentController] button in
if case .app = button {
attachmentController?.convertToStandalone()
return true
}
return false
}
attachmentController.didDismiss = { [weak self] in
self?.attachmentController = nil
self?.canReadHistory.set(true)