diff --git a/desktop/src/features/home/ui/HomeView.tsx b/desktop/src/features/home/ui/HomeView.tsx index 2a02284fb6..fd5085bb31 100644 --- a/desktop/src/features/home/ui/HomeView.tsx +++ b/desktop/src/features/home/ui/HomeView.tsx @@ -414,6 +414,7 @@ export function HomeView({ onFilterChange={setFilter} onSelect={(itemId) => { handleUserSelectItem(itemId); + markItemRead(itemId); }} reminderPubkey={currentPubkey} selectedId={selectedItemId} diff --git a/desktop/src/features/home/ui/InboxListPane.tsx b/desktop/src/features/home/ui/InboxListPane.tsx index 5990fd1d2f..c4fa6a1dfc 100644 --- a/desktop/src/features/home/ui/InboxListPane.tsx +++ b/desktop/src/features/home/ui/InboxListPane.tsx @@ -121,21 +121,18 @@ export function InboxListPane({ -
+ {children}
+
+ );
+ }
+
return (
{children}
@@ -1937,6 +1947,10 @@ function createMarkdownComponents(
const { agentMentionPubkeysByName, mentionPubkeysByName } =
runtimeRef.current;
const mentionText = String(children ?? "");
+ if (plainInlineReferences) {
+ return {mentionText};
+ }
+
const mentionName = mentionText.replace(/^@/, "").trim().toLowerCase();
const pubkey = mentionPubkeysByName?.[mentionName];
const isAgentMention =
@@ -1988,6 +2002,10 @@ function createMarkdownComponents(
return ;
},
"channel-link": ({ children }: { children?: React.ReactNode }) => {
+ if (plainInlineReferences) {
+ return {children};
+ }
+
const { channels, onOpenChannel } = runtimeRef.current;
const text = String(children ?? "");
const channelName = text.startsWith("#") ? text.slice(1) : text;
@@ -2075,6 +2093,7 @@ function MarkdownInner({
customEmoji,
imetaByUrl,
interactive = true,
+ plainInlineReferences = false,
agentMentionPubkeysByName,
mentionNames,
mentionPubkeysByName,
@@ -2116,8 +2135,9 @@ function MarkdownInner({
});
const components = React.useMemo(
- () => createMarkdownComponents(runtimeRef, interactive),
- [runtimeRef, interactive],
+ () =>
+ createMarkdownComponents(runtimeRef, interactive, plainInlineReferences),
+ [runtimeRef, interactive, plainInlineReferences],
);
// biome-ignore lint/suspicious/noExplicitAny: PluggableList type not directly importable
@@ -2200,6 +2220,7 @@ export const Markdown = React.memo(
prev.className === next.className &&
prev.customEmoji === next.customEmoji &&
prev.interactive === next.interactive &&
+ prev.plainInlineReferences === next.plainInlineReferences &&
prev.agentMentionPubkeysByName === next.agentMentionPubkeysByName &&
prev.mentionPubkeysByName === next.mentionPubkeysByName &&
shallowArrayEqual(prev.mentionNames, next.mentionNames) &&