refactor(communities): remove typo in `exportCommunity()` API

This commit is contained in:
Pascal Precht 2021-07-21 13:00:32 +02:00 committed by Iuri Matias
parent 84f87f696c
commit 5bf5095c3c
3 changed files with 3 additions and 3 deletions

View File

@ -383,7 +383,7 @@ QtObject:
proc inviteUsersToCommunity*(self: CommunitiesView, pubKeysJSON: string): string {.slot.} =
self.inviteUsersToCommunityById(self.activeCommunity.id(), pubKeysJSON)
proc exportComumnity*(self: CommunitiesView): string {.slot.} =
proc exportCommunity*(self: CommunitiesView): string {.slot.} =
try:
result = self.status.chat.exportCommunity(self.activeCommunity.communityItem.id)
except Exception as e:

View File

@ -65,7 +65,7 @@ Rectangle {
let hiddenBannerIds = appSettings.hiddenCommunityBackUpBanners
hiddenBannerIds.push(chatsModel.communities.activeCommunity.id)
appSettings.hiddenCommunityBackUpBanners = hiddenBannerIds
openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportComumnity()})
openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportCommunity()})
}
}

View File

@ -64,7 +64,7 @@ StatusModal {
onEditButtonClicked: openPopup(editCommunityPopup, {
community: popup.community
})
onTransferOwnershipButtonClicked: openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportComumnity()})
onTransferOwnershipButtonClicked: openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportCommunity()})
onLeaveButtonClicked: chatsModel.communities.leaveCommunity(popup.community.id)
}
}