From 5846caffc4ced86d744126a2819e0ca47b1ff969 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 16 Dec 2021 15:54:38 +1100 Subject: [PATCH] fix closed group updates undefined on no names (#2092) --- ts/components/leftpane/conversation-list-item/MessageItem.tsx | 1 - ts/hooks/useParamSelector.ts | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/components/leftpane/conversation-list-item/MessageItem.tsx b/ts/components/leftpane/conversation-list-item/MessageItem.tsx index 344c79378..785c35de5 100644 --- a/ts/components/leftpane/conversation-list-item/MessageItem.tsx +++ b/ts/components/leftpane/conversation-list-item/MessageItem.tsx @@ -16,7 +16,6 @@ function useMessageItemProps(convoId: string) { return { isTyping: !!convoProps.isTyping, lastMessage: convoProps.lastMessage, - unreadCount: convoProps.unreadCount || 0, }; } diff --git a/ts/hooks/useParamSelector.ts b/ts/hooks/useParamSelector.ts index 2049a0669..141c2315c 100644 --- a/ts/hooks/useParamSelector.ts +++ b/ts/hooks/useParamSelector.ts @@ -41,7 +41,8 @@ export function useConversationsUsernameWithQuoteOrFullPubkey(pubkeys: Array