mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-18 17:49:00 +00:00
refactor(communities): remove typo in exportCommunity()
API
This commit is contained in:
parent
84f87f696c
commit
5bf5095c3c
@ -383,7 +383,7 @@ QtObject:
|
|||||||
proc inviteUsersToCommunity*(self: CommunitiesView, pubKeysJSON: string): string {.slot.} =
|
proc inviteUsersToCommunity*(self: CommunitiesView, pubKeysJSON: string): string {.slot.} =
|
||||||
self.inviteUsersToCommunityById(self.activeCommunity.id(), pubKeysJSON)
|
self.inviteUsersToCommunityById(self.activeCommunity.id(), pubKeysJSON)
|
||||||
|
|
||||||
proc exportComumnity*(self: CommunitiesView): string {.slot.} =
|
proc exportCommunity*(self: CommunitiesView): string {.slot.} =
|
||||||
try:
|
try:
|
||||||
result = self.status.chat.exportCommunity(self.activeCommunity.communityItem.id)
|
result = self.status.chat.exportCommunity(self.activeCommunity.communityItem.id)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -65,7 +65,7 @@ Rectangle {
|
|||||||
let hiddenBannerIds = appSettings.hiddenCommunityBackUpBanners
|
let hiddenBannerIds = appSettings.hiddenCommunityBackUpBanners
|
||||||
hiddenBannerIds.push(chatsModel.communities.activeCommunity.id)
|
hiddenBannerIds.push(chatsModel.communities.activeCommunity.id)
|
||||||
appSettings.hiddenCommunityBackUpBanners = hiddenBannerIds
|
appSettings.hiddenCommunityBackUpBanners = hiddenBannerIds
|
||||||
openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportComumnity()})
|
openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportCommunity()})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ StatusModal {
|
|||||||
onEditButtonClicked: openPopup(editCommunityPopup, {
|
onEditButtonClicked: openPopup(editCommunityPopup, {
|
||||||
community: popup.community
|
community: popup.community
|
||||||
})
|
})
|
||||||
onTransferOwnershipButtonClicked: openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportComumnity()})
|
onTransferOwnershipButtonClicked: openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportCommunity()})
|
||||||
onLeaveButtonClicked: chatsModel.communities.leaveCommunity(popup.community.id)
|
onLeaveButtonClicked: chatsModel.communities.leaveCommunity(popup.community.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user