fix: markdown leading space

This commit is contained in:
hydrogen 2020-12-06 03:37:05 +02:00 committed by Iuri Matias
parent 398a6b2fc0
commit dacbadbed1
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ Rectangle {
if(control.isImage){
chatsModel.sendImage(imageArea.imageSource);
}
var msg = chatsModel.plainText(Emoji.deparse(messageInputField.text).trim()).trim()
var msg = chatsModel.plainText(Emoji.deparse(messageInputField.text))
if(msg.length > 0){
msg = interpretMessage(msg)
chatsModel.sendMessage(msg, control.isReply ? SelectedMessage.messageId : "", Utils.isOnlyEmoji(msg) ? Constants.emojiType : Constants.messageType);