fix(StatusChatInput): fix sending messages by adding missing parameter to sendMessage

This commit is contained in:
Pascal Precht 2020-12-21 21:25:37 +01:00 committed by Jonathan Rainville
parent cbbe2b46fc
commit ad8f713f1d
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ StackLayout {
var msg = chatsModel.plainText(Emoji.deparse(chatInput.textInput.text)) var msg = chatsModel.plainText(Emoji.deparse(chatInput.textInput.text))
if (msg.length > 0){ if (msg.length > 0){
msg = chatInput.interpretMessage(msg) msg = chatInput.interpretMessage(msg)
chatsModel.sendMessage(msg, chatInput.isReply ? SelectedMessage.messageId : "", Utils.isOnlyEmoji(msg) ? Constants.emojiType : Constants.messageType); chatsModel.sendMessage(msg, chatInput.isReply ? SelectedMessage.messageId : "", Utils.isOnlyEmoji(msg) ? Constants.emojiType : Constants.messageType, false);
chatInput.textInput.text = ""; chatInput.textInput.text = "";
if(event) event.accepted = true if(event) event.accepted = true
chatInput.messageSound.stop() chatInput.messageSound.stop()