changeCommunityKeyCompression moved from Utils to UtilsStore
This commit is contained in:
parent
4c7205fc5d
commit
e2341414a3
|
@ -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 !== ""
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -851,10 +851,6 @@ QtObject {
|
|||
}
|
||||
}
|
||||
|
||||
function changeCommunityKeyCompression(communityKey) {
|
||||
return globalUtilsInst.changeCommunityKeyCompression(communityKey)
|
||||
}
|
||||
|
||||
function getCompressedPk(publicKey) {
|
||||
if (publicKey === "") {
|
||||
return ""
|
||||
|
|
Loading…
Reference in New Issue