From 1cb938fceda6d6ec068501d9fa24a54c561a2ea7 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Thu, 6 May 2021 14:47:08 +1000 Subject: [PATCH 1/2] SidebarListHeader: fix group feed, again --- .../views/landscape/components/Sidebar/SidebarListHeader.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx b/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx index edcda928e..c297e44db 100644 --- a/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx +++ b/pkg/interface/src/views/landscape/components/Sidebar/SidebarListHeader.tsx @@ -53,8 +53,8 @@ export function SidebarListHeader(props: { const noun = (props.workspace?.type === 'messages') ? 'Messages' : 'Channels'; let feedPath: any = null; - if ('group' in metadata?.config && typeof metadata.config.group === 'string') { - feedPath = metadata.config.group; + if (metadata.config && 'group' in metadata?.config && 'resource' in metadata.config.group) { + feedPath = metadata.config.group.resource; } const unreadCount = useHarkState( From 4143c00f3a7ce8377db5766d5e413eec63169dde Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Thu, 6 May 2021 14:54:44 +1000 Subject: [PATCH 2/2] GraphContent: fix image rendering --- .../src/views/landscape/components/Graph/GraphContent.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/interface/src/views/landscape/components/Graph/GraphContent.tsx b/pkg/interface/src/views/landscape/components/Graph/GraphContent.tsx index 2c4152eee..85819eb14 100644 --- a/pkg/interface/src/views/landscape/components/Graph/GraphContent.tsx +++ b/pkg/interface/src/views/landscape/components/Graph/GraphContent.tsx @@ -346,6 +346,11 @@ const renderers = { ); }, 'graph-mention': ({ ship }) => , + 'image': ({ url }) => ( + + + + ), 'graph-url': ({ url }) => (