fix(@desktop/chat): Hide create chat panel when some other menu items are selected

Fix #7675
This commit is contained in:
Michal Iskierko 2022-11-21 16:46:41 +01:00 committed by Michał Iskierko
parent d8bda2490a
commit a46206e4fd
2 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,10 @@ StackLayout {
clip: true clip: true
onCurrentIndexChanged: {
Global.closeCreateChatView()
}
Component { Component {
id: membershipRequestPopupComponent id: membershipRequestPopupComponent
MembershipRequestsPopup { MembershipRequestsPopup {

View File

@ -776,6 +776,8 @@ Item {
if (!obj) if (!obj)
return return
createChatView.opened = false
if (obj === browserLayoutContainer && browserLayoutContainer.active == false) { if (obj === browserLayoutContainer && browserLayoutContainer.active == false) {
browserLayoutContainer.active = true; browserLayoutContainer.active = true;
} }