fix(@desktop/chat)

Fixed #2430: Add members window shown when accessing 1x1 chat within group chat
This commit is contained in:
Andrei Smirnov 2021-07-06 18:25:14 +03:00 committed by Iuri Matias
parent 35198cb448
commit a5806aaf5a
2 changed files with 7 additions and 2 deletions

View File

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

View File

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