fix(chat): Fix chat screen for empty state visibility

Closes: #6199
This commit is contained in:
Boris Melnik 2022-06-30 22:25:04 +03:00
parent 6fac00673f
commit 42fca84c76
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ Item {
property bool isSectionActive: mainModule.activeSection.id === parentModule.getMySectionId()
property string activeChatId: parentModule && parentModule.activeItem.id
property string activeSubItemId: parentModule && parentModule.activeItem.activeSubItem.id
property int chatsCount: parentModule && parentModule.model ? parentModule.model.count : 0
property string activeChatType: parentModule && parentModule.activeItem.type
property string currentNotificationChatId
property string currentNotificationCommunityId
@ -160,7 +161,7 @@ Item {
EmptyChatPanel {
anchors.fill: parent
visible: root.activeChatId === ""
visible: root.activeChatId === "" || root.chatsCount == 0
rootStore: root.rootStore
onShareChatKeyClicked: Global.openProfilePopup(userProfile.pubKey);
}