diff --git a/ui/app/AppLayouts/Chat/popups/community/AccessExistingCommunityPopup.qml b/ui/app/AppLayouts/Chat/popups/community/AccessExistingCommunityPopup.qml index 1ad52c9470..bf60b44de2 100644 --- a/ui/app/AppLayouts/Chat/popups/community/AccessExistingCommunityPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/AccessExistingCommunityPopup.qml @@ -16,6 +16,7 @@ StatusModal { width: 400 height: 400 + property var store property string error: "" property string keyValidationError: "" property string communityKey: "" @@ -81,6 +82,8 @@ StatusModal { communityKey = "0x" + communityKey; } + + root.error = root.store.chatsModelInst.communities.importCommunity(communityKey, Utils.uuid()) if (!!root.error) { creatingError.text = error; return creatingError.open(); diff --git a/ui/app/AppLayouts/Chat/views/ContactsColumnView.qml b/ui/app/AppLayouts/Chat/views/ContactsColumnView.qml index fc48e9dd06..5c9541275e 100644 --- a/ui/app/AppLayouts/Chat/views/ContactsColumnView.qml +++ b/ui/app/AppLayouts/Chat/views/ContactsColumnView.qml @@ -349,7 +349,7 @@ Item { id: importCommunitiesPopupComponent AccessExistingCommunityPopup { anchors.centerIn: parent - error: root.store.chatsModelInst.communities.importCommunity(communityKey, Utils.uuid()) + store: root.store onClosed: { destroy() }