changeCommunityKeyCompression moved from Utils to UtilsStore

This commit is contained in:
Michał Cieślak 2024-10-22 18:00:22 +02:00 committed by Michał
parent 4c7205fc5d
commit e2341414a3
3 changed files with 5 additions and 6 deletions

View File

@ -60,7 +60,7 @@ StatusDialog {
return ""
if (!root.utilsStore.isCompressedPubKey(inputKey))
return inputKey
return Utils.changeCommunityKeyCompression(inputKey)
return root.utilsStore.changeCommunityKeyCompression(inputKey)
}
readonly property bool isInputValid: publicKey !== ""

View File

@ -29,11 +29,14 @@ QtObject {
return d.globalUtilsInst.isAlias(name)
}
function getEmojiHash(publicKey) {
if (publicKey === "" || !isChatKey(publicKey))
return []
return JSON.parse(d.globalUtilsInst.getEmojiHashAsJson(publicKey))
}
function changeCommunityKeyCompression(communityKey) {
return d.globalUtilsInst.changeCommunityKeyCompression(communityKey)
}
}

View File

@ -851,10 +851,6 @@ QtObject {
}
}
function changeCommunityKeyCompression(communityKey) {
return globalUtilsInst.changeCommunityKeyCompression(communityKey)
}
function getCompressedPk(publicKey) {
if (publicKey === "") {
return ""