fix(profile key): use the same 3,6 elided key everywhere

according to latest designs, the elided compressed key should be
diplayed with 3 leading and 6 trailing characters, just like we already
do in `Utils.getElidedCompressedPk(pubkey)`
This commit is contained in:
Lukáš Tinkl 2024-02-09 16:45:34 +01:00 committed by Lukáš Tinkl
parent c29f6de697
commit cf847e14fa
3 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@ import QtQuick 2.14
import StatusQ.Core.Theme 0.1
import StatusQ.Core 0.1
import StatusQ.Core.Utils 0.1
/*!
\qmltype StatusMemberListItem
@ -113,7 +114,7 @@ StatusListItem {
function composeShortKeyChat(pubKey) {
if (!pubKey)
return ""
return pubKey.substring(0, 5) + "..." + pubKey.substring(pubKey.length - 3)
return Utils.elideText(pubKey, 3, 6)
}
}

View File

@ -121,7 +121,7 @@ Item {
visible: text
elide: Text.ElideMiddle
color: Theme.palette.baseColor1
text: Utils.elideText(root.tertiaryDetail, 5, 3)
text: Utils.elideText(root.tertiaryDetail, 3, 6)
}
}

View File

@ -56,7 +56,7 @@ RowLayout {
sender: root.messageDetails.sender
amISender: root.messageDetails.amISender
messageOriginInfo: root.messageDetails.messageOriginInfo
tertiaryDetail: sender.isEnsVerified ? "" : Utils.getElidedCompressedPk(sender.id)
tertiaryDetail: sender.isEnsVerified ? "" : Utils.getCompressedPk(sender.id)
timestamp: root.timestamp
onClicked: root.openProfilePopup()
}