From 42423074de8908b35d8966fdf022b429dd4a07c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Fri, 20 Sep 2024 14:13:22 +0200 Subject: [PATCH] fix(MessageView): unbreak GIF unfurling - need to refer to the RootStore singleton under an alias now Fixes #16368 --- ui/imports/shared/views/chat/MessageView.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/imports/shared/views/chat/MessageView.qml b/ui/imports/shared/views/chat/MessageView.qml index 19a464df78..a6e52807f5 100644 --- a/ui/imports/shared/views/chat/MessageView.qml +++ b/ui/imports/shared/views/chat/MessageView.qml @@ -947,9 +947,9 @@ Loader { Global.openMenu(imageContextMenuComponent, item, { url: url, domain: domain, requireConfirmationOnOpen: true }) } onHoveredLinkChanged: delegate.highlightedLink = linksMessageView.hoveredLink - gifUnfurlingEnabled: RootStore.gifUnfurlingEnabled - canAskToUnfurlGifs: !RootStore.neverAskAboutUnfurlingAgain - onSetNeverAskAboutUnfurlingAgain: RootStore.setNeverAskAboutUnfurlingAgain(neverAskAgain) + gifUnfurlingEnabled: SharedStores.RootStore.gifUnfurlingEnabled + canAskToUnfurlGifs: !SharedStores.RootStore.neverAskAboutUnfurlingAgain + onSetNeverAskAboutUnfurlingAgain: SharedStores.RootStore.setNeverAskAboutUnfurlingAgain(neverAskAgain) Component.onCompleted: { root.messageStore.messageModule.forceLinkPreviewsLocalData(root.messageId)