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
chg(new-channels): gaurd isChannelReady on didInitialScroll (#2096)
teoa7da1e6ed1e1
diff --git a/js/app/packages/block-channel/component/ChannelBlockSwitch.tsx b/js/app/packages/block-channel/component/ChannelBlockSwitch.tsxindex f5e318c383..485d206472 100644--- a/js/app/packages/block-channel/component/ChannelBlockSwitch.tsx+++ b/js/app/packages/block-channel/component/ChannelBlockSwitch.tsx@@ -1,4 +1,5 @@import { ShowFeatureFlag } from '@app/lib/analytics/posthog';+import { ENABLE_NEW_CHANNELS } from '@core/constant/featureFlags';import type { BlockChannelProps } from './Block';import BlockChannel from './Block';import { NewChannelBlockAdapter } from './NewChannelBlockAdapter';@@ -7,6 +8,7 @@ export function ChannelBlockSwitch(props: BlockChannelProps) {return (<ShowFeatureFlagkey="enable-new-channels"+ enabledOverride={ENABLE_NEW_CHANNELS()}fallback={<BlockChannel {...props} />}><NewChannelBlockAdapter />diff --git a/js/app/packages/channel/Channel/Channel.tsx b/js/app/packages/channel/Channel/Channel.tsxindex e56ebe00be..5037e3cd58 100644--- a/js/app/packages/channel/Channel/Channel.tsx+++ b/js/app/packages/channel/Channel/Channel.tsx@@ -217,7 +217,11 @@ export function Channel(props: ChannelProps) {};const isChannelReady = () => {- return messagesQuery.isFetched && threadListNavigation();+ return (+ messagesQuery.isFetched &&+ threadListNavigation() &&+ threadListScrollState()?.didInitialScroll+ );};createEffect(