From 7c735aa7a848363ae40bcb8676227c084ca90bca Mon Sep 17 00:00:00 2001 From: Andrei Smirnov Date: Mon, 2 Aug 2021 12:39:51 +0300 Subject: [PATCH] fix(@desktop/communities): close community modal when leaving the community --- .../Chat/CommunityComponents/CommunityProfilePopup.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml index 8429e06d89..86ebaaec07 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopup.qml @@ -65,7 +65,10 @@ StatusModal { community: popup.community }) onTransferOwnershipButtonClicked: openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportCommunity()}) - onLeaveButtonClicked: chatsModel.communities.leaveCommunity(popup.community.id) + onLeaveButtonClicked: { + chatsModel.communities.leaveCommunity(popup.community.id) + popup.close() + } } }