mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 17:29:20 +00:00
Open and close keyboard when user interacts with bubbles
This commit is contained in:
parent
5054fa8d71
commit
afeef1d93c
1 changed files with 6 additions and 0 deletions
|
|
@ -266,6 +266,9 @@ class ChatConversationTableViewSwift: UIViewController, UICollectionViewDataSour
|
|||
} else {
|
||||
menu!.bottomOffset = CGPoint(x: event.chatMessage!.isOutgoing ? coordinateMax.x - 200 : coordinateMin.x, y: 0)
|
||||
}
|
||||
|
||||
let view: ChatConversationViewSwift = self.VIEW(ChatConversationViewSwift.compositeViewDescription())
|
||||
view.messageView.endEditing(true)
|
||||
|
||||
menu!.show()
|
||||
menu!.selectionAction = { [weak self] (index: Int, item: String) in
|
||||
|
|
@ -390,6 +393,9 @@ class ChatConversationTableViewSwift: UIViewController, UICollectionViewDataSour
|
|||
|
||||
func replyMessage(message: ChatMessage){
|
||||
let view: ChatConversationViewSwift = self.VIEW(ChatConversationViewSwift.compositeViewDescription())
|
||||
if (view.messageView.messageText.text == "" && view.stackView.arrangedSubviews[3].isHidden && view.stackView.arrangedSubviews[4].isHidden){
|
||||
view.messageView.messageText.becomeFirstResponder()
|
||||
}
|
||||
view.initiateReplyView(forMessage: message.getCobject)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue