mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 01:10:09 +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, {})
|
completion(t, {})
|
||||||
})
|
})
|
||||||
strongSelf.updateItemNodesSearchTextHighlightStates()
|
strongSelf.updateItemNodesSearchTextHighlightStates()
|
||||||
strongSelf.chatDisplayNode.ensureInputViewFocused()
|
if !strongSelf.chatDisplayNode.ensureInputViewFocused() {
|
||||||
|
DispatchQueue.main.async { [weak self] in
|
||||||
|
guard let self else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
self.chatDisplayNode.ensureInputViewFocused()
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
completion(.immediate, {})
|
completion(.immediate, {})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3792,9 +3792,12 @@ class ChatControllerNode: ASDisplayNode, ASScrollViewDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func ensureInputViewFocused() {
|
@discardableResult func ensureInputViewFocused() -> Bool {
|
||||||
if let inputPanelNode = self.inputPanelNode as? ChatTextInputPanelNode {
|
if let inputPanelNode = self.inputPanelNode as? ChatTextInputPanelNode {
|
||||||
inputPanelNode.ensureFocused()
|
inputPanelNode.ensureFocused()
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user