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:
parent
c29f6de697
commit
cf847e14fa
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue