mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Update Podspec and clean up code
This commit is contained in:
@@ -105,13 +105,13 @@ class ConversationViewController: MessagesViewController, MessagesDataSource, Me
|
||||
}
|
||||
|
||||
extension ConversationViewController: MessageInputBarDelegate {
|
||||
|
||||
|
||||
func sendButtonPressed(sender: UIButton) {
|
||||
// Maybe we should pass the UITextView or text with the sender?
|
||||
guard let message = messageInputBar.inputTextView.text else { return }
|
||||
|
||||
func sendButtonPressed(sender: UIButton, textView: UITextView) {
|
||||
|
||||
guard let message = textView.text else { return }
|
||||
|
||||
messages.append(MockMessage(text: message, sender: currentSender(), id: NSUUID().uuidString))
|
||||
|
||||
messagesCollectionView.reloadData()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user