diff --git a/ui/app/AppLayouts/Chat/components/GroupInfoPopup.qml b/ui/app/AppLayouts/Chat/components/GroupInfoPopup.qml index 70b3b6e16e..8dcbcb8522 100644 --- a/ui/app/AppLayouts/Chat/components/GroupInfoPopup.qml +++ b/ui/app/AppLayouts/Chat/components/GroupInfoPopup.qml @@ -303,7 +303,7 @@ ModalPopup { cursorShape: Qt.PointingHandCursor onClicked: { const userProfileImage = appMain.getProfileImage(model.pubKey) - openProfilePopup(model.userName, model.pubKey, userProfileImage || model.identicon, '', contactRow.nickname) + openProfilePopup(model.userName, model.pubKey, userProfileImage || model.identicon, '', contactRow.nickname, popup) } } } diff --git a/ui/app/AppLayouts/Chat/components/ProfilePopup.qml b/ui/app/AppLayouts/Chat/components/ProfilePopup.qml index 7bfe18bfcd..60a900a499 100644 --- a/ui/app/AppLayouts/Chat/components/ProfilePopup.qml +++ b/ui/app/AppLayouts/Chat/components/ProfilePopup.qml @@ -341,8 +341,13 @@ ModalPopup { width: visible ? implicitWidth : 0 onClicked: { appMain.changeAppSection(Constants.chat) - chatsModel.channelView.joinPrivateChat(fromAuthor, ""); + chatsModel.channelView.joinPrivateChat(fromAuthor, "") popup.close() + let pp = parentPopup + while (pp) { + pp.close() + pp = pp.parentPopup + } } }