From 0ef854a5633d2bb86990933c7466bfec6b3c916c Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Thu, 11 Feb 2021 16:22:12 +1000 Subject: [PATCH] Chat: add sig to mention, to correctly index contacts Fixes urbit/landscape#395 --- pkg/interface/src/views/apps/chat/components/ChatMessage.tsx | 2 +- pkg/interface/src/views/apps/chat/components/content/text.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx b/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx index 4744bab369..d5f6091246 100644 --- a/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx +++ b/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx @@ -496,7 +496,7 @@ export const MessageContent = ({ group={group} scrollWindow={scrollWindow} ship={content.mention} - contact={contacts?.[content.mention]} + contact={contacts?.[`~${content.mention}`]} /> ); } else { diff --git a/pkg/interface/src/views/apps/chat/components/content/text.js b/pkg/interface/src/views/apps/chat/components/content/text.js index 420b2453d7..1edbd919d3 100644 --- a/pkg/interface/src/views/apps/chat/components/content/text.js +++ b/pkg/interface/src/views/apps/chat/components/content/text.js @@ -85,8 +85,6 @@ export default function TextContent(props) { && (urbitOb.isValidPatp(group[2]) // valid patp? && (group[0] === content.text))) // entire message is room name? - console.log(isGroupLink); - if(isGroupLink) { const resource = `/ship/${content.text}`; return (