fix(@desktop/communities): close community modal when leaving the community

This commit is contained in:
Andrei Smirnov 2021-08-02 12:39:51 +03:00 committed by Iuri Matias
parent 46e3779020
commit 7c735aa7a8
1 changed files with 4 additions and 1 deletions

View File

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