Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(new-channels): notifications not marked as read from new channels (#2356)
dev-rbaed35155bf61
diff --git a/js/app/packages/block-channel/component/NewChannelBlockAdapter.tsx b/js/app/packages/block-channel/component/NewChannelBlockAdapter.tsxindex 0fd4b65de2..ca3e3ef5f8 100644--- a/js/app/packages/block-channel/component/NewChannelBlockAdapter.tsx+++ b/js/app/packages/block-channel/component/NewChannelBlockAdapter.tsx@@ -21,6 +21,8 @@ import {} from '@channel/Channel/channel-tabs';import { ChannelAttachmentsTab } from '@channel/Attachments/ChannelAttachmentsTab';import { ChannelParticipantsTab } from '@channel/Participants/ChannelParticipantsTab';+import { ChannelDebouncedNotificationReadMarker } from '@notifications/components/DebouncedNotificationReadMarker';+import { useGlobalNotificationSource } from '@app/component/GlobalAppState';function NewTop(props: {channelId: string;@@ -55,6 +57,9 @@ function NewTop(props: {export function NewChannelBlockAdapter() {useBlockEntityCommands();++ const notificationSource = useGlobalNotificationSource();+const channelId = useBlockId();const blockHandle = blockHandleSignal.get;const [activeTab, setActiveTab] =@@ -82,6 +87,11 @@ export function NewChannelBlockAdapter() {return (<EntityPermissionsGate entityType="channel" entityId={channelId}>+ <ChannelDebouncedNotificationReadMarker+ notificationSource={notificationSource}+ channelId={channelId}+ debounceTime={500}+ /><div class="relative h-full flex flex-col"><Switch><Match when={activeTab() === 'messages'}>