{noResults ? {window.i18n('noSearchResults', [searchTerm])} : null}
{haveContactsAndGroup ? (
-
+ <>
{window.i18n('conversationsHeader')}
{contactsAndGroups.map(contactOrGroup => (
{
key={`search-result-convo-${contactOrGroup.id}`}
/>
))}
-
+ >
) : null}
{haveMessages && (
-
+ <>
{`${window.i18n('messagesHeader')}: ${messages.length}`}
{messages.map(message => (
))}
-
+ >
)}
);
diff --git a/ts/hooks/useParamSelector.ts b/ts/hooks/useParamSelector.ts
index e36f4a2c6..3cff7c8a4 100644
--- a/ts/hooks/useParamSelector.ts
+++ b/ts/hooks/useParamSelector.ts
@@ -32,11 +32,11 @@ export function useConversationUsernameOrShorten(convoId?: string) {
}
/**
- * Returns either the nickname, profileName, or the shorten pubkey
+ * Returns the name if that conversation.
+ * This is the group name, or the realName of a user for a private conversation with a recent nickname set
*/
export function useConversationRealName(convoId?: string) {
const convoProps = useConversationPropsById(convoId);
-
return convoProps?.isPrivate ? convoProps?.name : undefined;
}
diff --git a/ts/models/conversation.ts b/ts/models/conversation.ts
index 0ad2939d2..5dfa64440 100644
--- a/ts/models/conversation.ts
+++ b/ts/models/conversation.ts
@@ -1094,29 +1094,7 @@ export class ConversationModel extends Backbone.Model