Skip to content

Commit 22f993b

Browse files
committed
fix: do not show our own shorten pk in ContactName
1 parent f3091a2 commit 22f993b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ts/components/conversation/ContactName/ContactName.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,10 @@ export const ContactName = ({
246246
const shouldShowShortenPkAsName = !displayName;
247247

248248
const shouldShowPubkey =
249-
!shouldShowShortenPkAsName && isPublic && isShowPubkeyCtx(contactNameContext, isBlinded);
249+
!shouldShowShortenPkAsName &&
250+
!isMe &&
251+
isPublic &&
252+
isShowPubkeyCtx(contactNameContext, isBlinded);
250253
const boldProfileName = isBoldProfileNameCtx(contactNameContext);
251254
const forceSingleLine = isForceSingleLineCtx(contactNameContext);
252255

0 commit comments

Comments
 (0)