fix: unbreak importing community from settings

the ProfileSectionStore is simply missing the required method to proceed
(note that this popup is used in 2 different contexts; the one in
Community Portal works fine due to the fact it's passed a different
store!)
This commit is contained in:
Lukáš Tinkl 2023-03-24 13:48:33 +01:00 committed by Lukáš Tinkl
parent c65de87ad0
commit d75d723f5e
1 changed files with 9 additions and 1 deletions

View File

@ -9,7 +9,7 @@ QtObject {
property string backButtonName
property var aboutModuleInst: aboutModule
property var mainModuleInst: mainModule
property var profileSectionModuleInst: profileSectionModule
readonly property bool fetchingUpdate: aboutModuleInst.fetching
@ -143,6 +143,14 @@ QtObject {
root.communitiesModuleInst.importCommunity(communityKey);
}
function requestCommunityInfo(communityKey, importing = false) {
const publicKey = Utils.isCompressedPubKey(communityKey)
? Utils.changeCommunityKeyCompression(communityKey)
: communityKey
root.mainModuleInst.setCommunityIdToSpectate(publicKey)
root.communitiesModuleInst.requestCommunityInfo(publicKey, importing)
}
function getCurrentVersion() {
return aboutModuleInst.getCurrentVersion()
}