mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-06 17:00:13 +00:00
Always open keyboard when setting up a reply
This commit is contained in:
parent
3b275b5e98
commit
545140337b
@ -1536,7 +1536,14 @@ extension ChatControllerImpl {
|
||||
completion(t, {})
|
||||
})
|
||||
strongSelf.updateItemNodesSearchTextHighlightStates()
|
||||
strongSelf.chatDisplayNode.ensureInputViewFocused()
|
||||
if !strongSelf.chatDisplayNode.ensureInputViewFocused() {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self else {
|
||||
return
|
||||
}
|
||||
self.chatDisplayNode.ensureInputViewFocused()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
completion(.immediate, {})
|
||||
}
|
||||
|
||||
@ -3792,9 +3792,12 @@ class ChatControllerNode: ASDisplayNode, ASScrollViewDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
func ensureInputViewFocused() {
|
||||
@discardableResult func ensureInputViewFocused() -> Bool {
|
||||
if let inputPanelNode = self.inputPanelNode as? ChatTextInputPanelNode {
|
||||
inputPanelNode.ensureFocused()
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user