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(notif): filter out browser notif for new email (#2756)

Sean Aye5cb545f18238
diff --git a/js/app/packages/notifications/notification-platform.ts b/js/app/packages/notifications/notification-platform.ts
index 39f937089d..6b0375166c 100644
--- a/js/app/packages/notifications/notification-platform.ts
+++ b/js/app/packages/notifications/notification-platform.ts
@@ -80,8 +80,11 @@ export async function maybeHandlePlatformNotification(
notificationInterface: PlatformNotificationState,
splitLayoutManager: SplitManager
) {
- // Ignore document_mention notifications - they should not show as browser notifications
- if (notification.notification_metadata.tag === 'document_mention') {
+ // Ignore notification types that should not show as browser notifications
+ if (
+ notification.notification_metadata.tag === 'document_mention' ||
+ notification.notification_metadata.tag === 'new_email'
+ ) {
return;
}