fix: RPC method invocation as soon as Import Community popup was opened
This commit is contained in:
parent
23cd46e831
commit
cae7184d3f
|
@ -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();
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue