Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: email notifications not marked as read after opening email (#1946)

dev-rbd96b2d7868d2
diff --git a/js/app/packages/notifications/components/DebouncedNotificationReadMarker.tsx b/js/app/packages/notifications/components/DebouncedNotificationReadMarker.tsx
index 0fada77d27..1340da97f3 100644
--- a/js/app/packages/notifications/components/DebouncedNotificationReadMarker.tsx
+++ b/js/app/packages/notifications/components/DebouncedNotificationReadMarker.tsx
@@ -138,6 +138,10 @@ export function EmailDebouncedReadMarker(props: {
<DebouncedMarker
debounceTime={props.debounceTime}
debouncedFn={() => {
+ markNotificationsForEntityAsRead(props.notificationSource, {
+ type: 'email_thread',
+ id: props.threadId,
+ });
markSeenMutation.mutate({ threadId: props.threadId });
}}
/>