From 11f055932ab9ecc04879c36feb132ab33003e354 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sun, 20 Feb 2022 18:54:52 +0200 Subject: [PATCH] Support textEntityTypeStrikethrough It's not currently working because of this QtQuick bug: https://bugreports.qt.io/browse/QTBUG-72376 but maybe someday it will. --- qml/js/functions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qml/js/functions.js b/qml/js/functions.js index 6a6a587..d63394b 100644 --- a/qml/js/functions.js +++ b/qml/js/functions.js @@ -302,6 +302,12 @@ function enhanceMessageText(formattedText, ignoreEntities) { { offset: (entity.offset + entity.length), insertionString: "", removeLength: 0 } ); break; + case "textEntityTypeStrikethrough": + messageInsertions.push( + { offset: entity.offset, insertionString: "", removeLength: 0 }, + { offset: (entity.offset + entity.length), insertionString: "", removeLength: 0 } + ); + break; case "textEntityTypeMention": messageInsertions.push( { offset: entity.offset, insertionString: "", removeLength: 0 },