permalinks: style deleted chat reference

This commit is contained in:
James Acklin 2021-05-07 13:20:45 -04:00
parent 4024707b5a
commit 6d4bbe2517

View File

@ -269,6 +269,21 @@ export function TranscludedNode(props: {
}) {
const { node, showOurContact, assoc, transcluded } = props;
const group = useGroupForAssoc(assoc)!;
if (typeof node?.post === 'string') {
return (
<Box
mx="12px"
mt="12px"
p="2"
backgroundColor="washedGray"
borderRadius="2"
>
<Text gray>This message has been deleted.</Text>
</Box>
)
}
switch (assoc.metadata.config.graph) {
case 'chat':
return (