From 03fad6da6d216fa013f555776a23a48a504cb1b0 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Sun, 29 May 2022 22:10:30 +0200 Subject: [PATCH] Reactions only for current message, restore animated stickers --- qml/components/MessageListViewItem.qml | 2 ++ qml/components/messageContent/MessageSticker.qml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/components/MessageListViewItem.qml b/qml/components/MessageListViewItem.qml index 31e0e66..d2e9c06 100644 --- a/qml/components/MessageListViewItem.qml +++ b/qml/components/MessageListViewItem.qml @@ -254,6 +254,8 @@ ListItem { messageListItem.messageReactions = reactions; showItemCompletelyTimer.requestedIndex = index; showItemCompletelyTimer.start(); + } else { + messageListItem.messageReactions = null; } } } diff --git a/qml/components/messageContent/MessageSticker.qml b/qml/components/messageContent/MessageSticker.qml index 3f57261..ce499f8 100644 --- a/qml/components/messageContent/MessageSticker.qml +++ b/qml/components/messageContent/MessageSticker.qml @@ -27,7 +27,7 @@ MessageContentBase { property var stickerData: messageListItem ? messageListItem.myMessage.content.sticker : overlayFlickable.overlayMessage.content.sticker; readonly property bool asEmoji: appSettings.showStickersAsEmojis - readonly property bool animated: stickerData.is_animated && appSettings.animateStickers + readonly property bool animated: stickerData.type["@type"] === "stickerTypeAnimated" && appSettings.animateStickers readonly property bool stickerVisible: staticStickerLoader.item ? staticStickerLoader.item.visible : animatedStickerLoader.item ? animatedStickerLoader.item.visible : false readonly property bool isOwnSticker : messageListItem ? messageListItem.isOwnMessage : overlayFlickable.isOwnMessage