diff --git a/desktop/src/features/home/ui/HomeView.tsx b/desktop/src/features/home/ui/HomeView.tsx index eca9f932c..397c4984d 100644 --- a/desktop/src/features/home/ui/HomeView.tsx +++ b/desktop/src/features/home/ui/HomeView.tsx @@ -788,10 +788,11 @@ export function HomeView({ setIsDeletingMessage(false); }); }} - onOpenChannel={(channelId) => { + onManageChannel={(channelId) => { handleCloseProfilePanel(); setManagedChannelId(channelId); }} + onOpenContext={onOpenContext} onSendReply={async ({ content, mediaTags, diff --git a/desktop/src/features/home/ui/InboxDetailPane.tsx b/desktop/src/features/home/ui/InboxDetailPane.tsx index 78ce1de57..3b5cc11b9 100644 --- a/desktop/src/features/home/ui/InboxDetailPane.tsx +++ b/desktop/src/features/home/ui/InboxDetailPane.tsx @@ -77,7 +77,12 @@ type InboxDetailPaneProps = { latchedDefaultParentId?: string | null; onBack?: () => void; onDelete: () => void; - onOpenChannel: (channelId: string) => void; + onManageChannel: (channelId: string) => void; + onOpenContext: ( + channelId: string, + messageId: string, + threadRootId?: string | null, + ) => void; onSendReply: (input: { content: string; mediaTags?: string[][]; @@ -111,7 +116,8 @@ export function InboxDetailPane({ latchedDefaultParentId = null, onBack, onDelete, - onOpenChannel, + onManageChannel, + onOpenContext, onSendReply, onToggleReaction, }: InboxDetailPaneProps) { @@ -318,6 +324,7 @@ export function InboxDetailPane({ const contextLabel = channelContextName ?? formatInboxTypeLabel(item); const hasChannelContext = Boolean(channelContextName); const contextChannelId = item.item.channelId; + const contextThreadRootId = getThreadReference(item.item.tags).rootId; const handleSelectReplyTarget = (message: InboxDisplayMessage) => { setReplyTargetId((currentReplyTargetId) => @@ -358,7 +365,13 @@ export function InboxDetailPane({ {canOpenChannel && contextChannelId ? (