fix(MessageView): unbreak GIF unfurling

- need to refer to the RootStore singleton under an alias now

Fixes #16368
This commit is contained in:
Lukáš Tinkl 2024-09-20 14:13:22 +02:00 committed by Lukáš Tinkl
parent 894a5f19c9
commit 42423074de
1 changed files with 3 additions and 3 deletions

View File

@ -947,9 +947,9 @@ Loader {
Global.openMenu(imageContextMenuComponent, item, { url: url, domain: domain, requireConfirmationOnOpen: true }) Global.openMenu(imageContextMenuComponent, item, { url: url, domain: domain, requireConfirmationOnOpen: true })
} }
onHoveredLinkChanged: delegate.highlightedLink = linksMessageView.hoveredLink onHoveredLinkChanged: delegate.highlightedLink = linksMessageView.hoveredLink
gifUnfurlingEnabled: RootStore.gifUnfurlingEnabled gifUnfurlingEnabled: SharedStores.RootStore.gifUnfurlingEnabled
canAskToUnfurlGifs: !RootStore.neverAskAboutUnfurlingAgain canAskToUnfurlGifs: !SharedStores.RootStore.neverAskAboutUnfurlingAgain
onSetNeverAskAboutUnfurlingAgain: RootStore.setNeverAskAboutUnfurlingAgain(neverAskAgain) onSetNeverAskAboutUnfurlingAgain: SharedStores.RootStore.setNeverAskAboutUnfurlingAgain(neverAskAgain)
Component.onCompleted: { Component.onCompleted: {
root.messageStore.messageModule.forceLinkPreviewsLocalData(root.messageId) root.messageStore.messageModule.forceLinkPreviewsLocalData(root.messageId)