mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-17 09:08:49 +00:00
fix: input html being shown when removing css format
This commit is contained in:
parent
f52cc984d6
commit
1a05b944a2
@ -311,20 +311,18 @@ StackLayout {
|
|||||||
if (chatInput.fileUrls.length > 0){
|
if (chatInput.fileUrls.length > 0){
|
||||||
chatsModel.sendImage(chatInput.fileUrls[0], false);
|
chatsModel.sendImage(chatInput.fileUrls[0], false);
|
||||||
}
|
}
|
||||||
var msg = chatsModel.plainText(Emoji.deparse(chatInput.textInput.text))
|
let 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, false);
|
chatsModel.sendMessage(msg, chatInput.isReply ? SelectedMessage.messageId : "", Utils.isOnlyEmoji(msg) ? Constants.emojiType : Constants.messageType, false);
|
||||||
chatInput.textInput.textFormat = TextEdit.PlainText;
|
|
||||||
if (event) event.accepted = true
|
if (event) event.accepted = true
|
||||||
chatInput.messageSound.stop()
|
chatInput.messageSound.stop()
|
||||||
Qt.callLater(chatInput.messageSound.play);
|
Qt.callLater(chatInput.messageSound.play);
|
||||||
|
|
||||||
Qt.callLater(function(){
|
|
||||||
chatInput.textInput.clear();
|
chatInput.textInput.clear();
|
||||||
|
chatInput.textInput.textFormat = TextEdit.PlainText;
|
||||||
chatInput.textInput.textFormat = TextEdit.RichText;
|
chatInput.textInput.textFormat = TextEdit.RichText;
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user