changeCommunityKeyCompression moved from Utils to UtilsStore
This commit is contained in:
parent
4c7205fc5d
commit
e2341414a3
|
@ -60,7 +60,7 @@ StatusDialog {
|
||||||
return ""
|
return ""
|
||||||
if (!root.utilsStore.isCompressedPubKey(inputKey))
|
if (!root.utilsStore.isCompressedPubKey(inputKey))
|
||||||
return inputKey
|
return inputKey
|
||||||
return Utils.changeCommunityKeyCompression(inputKey)
|
return root.utilsStore.changeCommunityKeyCompression(inputKey)
|
||||||
}
|
}
|
||||||
readonly property bool isInputValid: publicKey !== ""
|
readonly property bool isInputValid: publicKey !== ""
|
||||||
|
|
||||||
|
|
|
@ -29,11 +29,14 @@ QtObject {
|
||||||
return d.globalUtilsInst.isAlias(name)
|
return d.globalUtilsInst.isAlias(name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getEmojiHash(publicKey) {
|
function getEmojiHash(publicKey) {
|
||||||
if (publicKey === "" || !isChatKey(publicKey))
|
if (publicKey === "" || !isChatKey(publicKey))
|
||||||
return []
|
return []
|
||||||
|
|
||||||
return JSON.parse(d.globalUtilsInst.getEmojiHashAsJson(publicKey))
|
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) {
|
function getCompressedPk(publicKey) {
|
||||||
if (publicKey === "") {
|
if (publicKey === "") {
|
||||||
return ""
|
return ""
|
||||||
|
|
Loading…
Reference in New Issue