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.} = 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:

View File

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

View File

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