mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
fix: sendBtn and trim
This commit is contained in:
parent
459de8cd1c
commit
397be0b0c0
@ -36,8 +36,9 @@ Item {
|
|||||||
chatsModel.sendImage(sendImageArea.image);
|
chatsModel.sendImage(sendImageArea.image);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(txtData.text.trim() > 0){
|
let msg = chatsModel.plainText(Emoji.deparse(txtData.text)).trim()
|
||||||
chatsModel.sendMessage(txtData.text.trim(), chatColumn.isReply ? SelectedMessage.messageId : "", Utils.isOnlyEmoji(txtData.text) ? Constants.emojiType : Constants.messageType)
|
if(msg.length > 0){
|
||||||
|
chatsModel.sendMessage(msg, chatColumn.isReply ? SelectedMessage.messageId : "", Utils.isOnlyEmoji(msg) ? Constants.emojiType : Constants.messageType)
|
||||||
txtData.text = "";
|
txtData.text = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,11 +39,12 @@ Rectangle {
|
|||||||
chatsModel.sendImage(sendImageArea.image);
|
chatsModel.sendImage(sendImageArea.image);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(txtData.text.trim().length > 0){
|
var msg = chatsModel.plainText(Emoji.deparse(txtData.text).trim()).trim()
|
||||||
var msg = interpretMessage(txtData.text.trim()).trim()
|
if(msg.length > 0){
|
||||||
|
msg = interpretMessage(msg)
|
||||||
msg = Emoji.deparse(msg)
|
msg = Emoji.deparse(msg)
|
||||||
|
|
||||||
chatsModel.sendMessage(msg, chatColumn.isReply ? SelectedMessage.messageId : "", Utils.isOnlyEmoji(txtData.text) ? Constants.emojiType : Constants.messageType);
|
chatsModel.sendMessage(msg, chatColumn.isReply ? SelectedMessage.messageId : "", Utils.isOnlyEmoji(msg) ? Constants.emojiType : Constants.messageType);
|
||||||
txtData.text = "";
|
txtData.text = "";
|
||||||
event.accepted = true
|
event.accepted = true
|
||||||
sendMessageSound.stop()
|
sendMessageSound.stop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user