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 })
}
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)