fix(@desktop/chat): update paste logic

Fixes #7772
This commit is contained in:
PavelS 2022-09-30 00:46:55 +03:00 committed by Michał
parent 8bd194eb48
commit c74d1086c0
1 changed files with 3 additions and 1 deletions

View File

@ -374,7 +374,9 @@ Rectangle {
d.copyTextStart = messageInputField.cursorPosition
messageInputField.readOnly = true
if (d.copiedTextPlain === QClipboardProxy.text) {
const clipboardText = globalUtils.plainText(QClipboardProxy.text)
const copiedText = globalUtils.plainText(d.copiedTextPlain)
if (copiedText === clipboardText) {
d.internalPaste = true
} else {
d.copiedTextPlain = ""