From 89e58a340f23480c39a60912ea47352d01523f57 Mon Sep 17 00:00:00 2001 From: James Acklin Date: Mon, 9 Dec 2024 19:18:57 -0500 Subject: [PATCH] ChannelListItem, channelUtils: fix bare patp display in ChatList --- packages/ui/src/components/ListItem/ChannelListItem.tsx | 5 +++-- packages/ui/src/utils/channelUtils.tsx | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/ui/src/components/ListItem/ChannelListItem.tsx b/packages/ui/src/components/ListItem/ChannelListItem.tsx index 357433072c..4614e435a0 100644 --- a/packages/ui/src/components/ListItem/ChannelListItem.tsx +++ b/packages/ui/src/components/ListItem/ChannelListItem.tsx @@ -78,11 +78,12 @@ export function ChannelListItem({ {title} {customSubtitle ? ( {customSubtitle} - ) : ( + ) : (model.type === 'dm' || model.type === 'groupDm') && + utils.hasNickname(model.members?.[0]?.contact) ? ( {subtitle} - )} + ) : null} {model.lastPost && !model.isDmInvite && ( 0; +}