mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 19:05:48 +03:00
Chat: add sig to mention, to correctly index contacts
Fixes urbit/landscape#395
This commit is contained in:
parent
1f251667cb
commit
0ef854a563
@ -496,7 +496,7 @@ export const MessageContent = ({
|
|||||||
group={group}
|
group={group}
|
||||||
scrollWindow={scrollWindow}
|
scrollWindow={scrollWindow}
|
||||||
ship={content.mention}
|
ship={content.mention}
|
||||||
contact={contacts?.[content.mention]}
|
contact={contacts?.[`~${content.mention}`]}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -85,8 +85,6 @@ export default function TextContent(props) {
|
|||||||
&& (urbitOb.isValidPatp(group[2]) // valid patp?
|
&& (urbitOb.isValidPatp(group[2]) // valid patp?
|
||||||
&& (group[0] === content.text))) // entire message is room name?
|
&& (group[0] === content.text))) // entire message is room name?
|
||||||
|
|
||||||
console.log(isGroupLink);
|
|
||||||
|
|
||||||
if(isGroupLink) {
|
if(isGroupLink) {
|
||||||
const resource = `/ship/${content.text}`;
|
const resource = `/ship/${content.text}`;
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user