fix: RPC method invocation as soon as Import Community popup was opened

This commit is contained in:
Richard Ramos 2021-11-30 10:49:36 -04:00 committed by Jonathan Rainville
parent 23cd46e831
commit cae7184d3f
2 changed files with 4 additions and 1 deletions

View File

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

View File

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