fix(Communities): Fix elide for communtiy public key

Closes: #7777
This commit is contained in:
Boris Melnik 2022-10-06 18:06:27 +03:00
parent 6a11a89ff3
commit 073e97eecd
2 changed files with 8 additions and 1 deletions

View File

@ -31,7 +31,7 @@ StatusModal {
Layout.fillWidth: true
readonly property string elidedPkey: Utils.elideText(root.privateKey, 16)
readonly property string elidedPkey: Utils.getElidedCommunityPK(root.privateKey)
leftPadding: 0
rightPadding: 0

View File

@ -619,6 +619,13 @@ QtObject {
return StatusQUtils.Utils.elideText(publicKey, 5, 3)
}
function getElidedCommunityPK(publicKey) {
if (publicKey === "") {
return ""
}
return StatusQUtils.Utils.elideText(publicKey, 16)
}
function getElidedCompressedPk(publicKey) {
if (publicKey === "") {
return ""