permalinks: style deleted chat reference
@@ -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 (
