fix: share community instead of import during inviting community member in the community with minted owner token (#12896)

This commit is contained in:
Mykhailo Prakhov 2023-11-28 19:57:28 +01:00 committed by GitHub
parent 3af73a44a5
commit a43e577f41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -472,7 +472,7 @@ QtObject:
if (self.discordImportCommunityName == name): return
self.discordImportCommunityName = name
self.discordImportCommunityNameChanged()
QtProperty[string] discordImportCommunityName:
read = getDiscordImportCommunityName
notify = discordImportCommunityNameChanged
@ -567,9 +567,8 @@ QtObject:
proc cancelRequestToJoinCommunity*(self: View, communityId: string) {.slot.} =
self.delegate.cancelRequestToJoinCommunity(communityId)
proc requestCommunityInfo*(self: View, communityId: string, importing: bool) {.slot.} =
# TODO update the slot to accept the shard arguments when it's available from the QML
self.delegate.requestCommunityInfo(communityId, shardCluster = -1, shardIndex = -1, importing)
proc requestCommunityInfo*(self: View, communityId: string, shardCluster: int, shardIndex: int, importing: bool) {.slot.} =
self.delegate.requestCommunityInfo(communityId, shardCluster, shardIndex, importing)
proc getCommunityDetails*(self: View, communityId: string): string {.slot.} =
let communityItem = self.model.getItemById(communityId)
@ -689,7 +688,7 @@ QtObject:
proc setDiscordImportedChannelCommunityId*(self: View, id: string) =
if (self.discordImportedChannelCommunityId == id): return
self.discordImportedChannelCommunityId = id
proc setDiscordImportChannelId*(self: View, id: string) {.slot.} =
if (self.discordImportChannelId == id): return
self.discordImportChannelId = id
@ -701,7 +700,7 @@ QtObject:
QtProperty[string] discordImportChannelId:
read = getDiscordImportChannelId
notify = discordImportChannelChanged
proc setDiscordImportChannelName*(self: View, name: string) {.slot.} =
if (self.discordImportChannelName == name): return
self.discordImportChannelName = name
@ -814,4 +813,4 @@ QtObject:
proc sharedAddressesForAllNonKeycardKeypairsSigned(self: View) {.signal.}
proc sendSharedAddressesForAllNonKeycardKeypairsSignedSignal*(self: View) =
self.sharedAddressesForAllNonKeycardKeypairsSigned()