mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
fix closed group updates undefined on no names (#2092)
This commit is contained in:
parent
abd146c4ca
commit
5846caffc4
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,6 @@ function useMessageItemProps(convoId: string) {
|
|||
return {
|
||||
isTyping: !!convoProps.isTyping,
|
||||
lastMessage: convoProps.lastMessage,
|
||||
|
||||
unreadCount: convoProps.unreadCount || 0,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -41,7 +41,8 @@ export function useConversationsUsernameWithQuoteOrFullPubkey(pubkeys: Array<str
|
|||
return window.i18n('you');
|
||||
}
|
||||
const convo = state.conversations.conversationLookup[pubkey];
|
||||
return `"${convo?.profileName}"` || `"${convo?.name}"` || pubkey;
|
||||
const nameGot = convo?.profileName || convo?.name;
|
||||
return nameGot?.length ? `"${nameGot}"` : pubkey;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue