|
@@ -519,8 +519,9 @@ extension ChatViewController: MessageInputBarDelegate {
|
|
|
|
|
|
func messageInputBar(_ inputBar: MessageInputBar, didPressSendButtonWith text: String) {
|
|
|
// messageList.append(Message(text: text, sender: currentSender(), messageId: UUID().uuidString, date: Date()))
|
|
|
-
|
|
|
- dc_send_text_msg(mailboxPointer, UInt32(self.chatId), text)
|
|
|
+ DispatchQueue.global().async {
|
|
|
+ dc_send_text_msg(mailboxPointer, UInt32(self.chatId), text)
|
|
|
+ }
|
|
|
print(text)
|
|
|
inputBar.inputTextView.text = String()
|
|
|
// messagesCollectionView.reloadData()
|