From 42fca84c7666ab881a876b3af70b6e6ba2a34715 Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Thu, 30 Jun 2022 22:25:04 +0300 Subject: [PATCH] fix(chat): Fix chat screen for empty state visibility Closes: #6199 --- ui/app/AppLayouts/Chat/views/ChatColumnView.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Chat/views/ChatColumnView.qml b/ui/app/AppLayouts/Chat/views/ChatColumnView.qml index f918d1ae2b..0f4120df79 100644 --- a/ui/app/AppLayouts/Chat/views/ChatColumnView.qml +++ b/ui/app/AppLayouts/Chat/views/ChatColumnView.qml @@ -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); }