diff --git a/ui/app/AppLayouts/Chat/views/ChatColumnView.qml b/ui/app/AppLayouts/Chat/views/ChatColumnView.qml index 6059c11dd4..f3cf805cb7 100644 --- a/ui/app/AppLayouts/Chat/views/ChatColumnView.qml +++ b/ui/app/AppLayouts/Chat/views/ChatColumnView.qml @@ -137,27 +137,6 @@ Item { store: root.rootStore reactionModel: root.rootStore.emojiReactionsModel } - - StatusImageModal { - id: imagePopup - onClicked: { - if (button === Qt.LeftButton) { - imagePopup.close() - } else if(button === Qt.RightButton) { - contextmenu.imageSource = imagePopup.imageSource - contextmenu.hideEmojiPicker = true - contextmenu.isRightClickOnImage = true; - contextmenu.show() - } - } - Connections { - target: Global - onOpenImagePopup: { - imagePopup.openPopup(image); - } - } - } - EmptyChatPanel { anchors.fill: parent diff --git a/ui/app/AppMain.qml b/ui/app/AppMain.qml index 892b96d397..c52737cd4a 100644 --- a/ui/app/AppMain.qml +++ b/ui/app/AppMain.qml @@ -136,6 +136,26 @@ Item { } } + StatusImageModal { + id: imagePopup + onClicked: { + if (button === Qt.LeftButton) { + imagePopup.close() + } else if(button === Qt.RightButton) { + contextmenu.imageSource = imagePopup.imageSource + contextmenu.hideEmojiPicker = true + contextmenu.isRightClickOnImage = true; + contextmenu.show() + } + } + Connections { + target: Global + onOpenImagePopup: { + imagePopup.openPopup(image); + } + } + } + property Component profilePopupComponent: ProfilePopup { id: profilePopup profileStore: appMain.rootStore.profileSectionStore.profileStore