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): remove persistence for thread-replies (#2197)
teo9a20001f7bbf
diff --git a/js/app/packages/queries/client.ts b/js/app/packages/queries/client.tsindex 673c473efe..1aa98ae8d8 100644--- a/js/app/packages/queries/client.ts+++ b/js/app/packages/queries/client.ts@@ -1,5 +1,5 @@import { QueryClient } from '@tanstack/solid-query';-import { createPersistenceKey, setupQueryPersistence } from './persistence';+import { setupQueryPersistence } from './persistence';import { createQueryPersistenceScopes } from './persistence-scopes';import { initSoupNormalizer } from './soup/cache';@@ -16,12 +16,6 @@ export const queryClient = new QueryClient({const buster = import.meta.env.__APP_VERSION__ ?? 'dev';-// Clean up orphaned v0 databases from the old whole-cache persistence format-try {- indexedDB.deleteDatabase(createPersistenceKey('channels', 0));- indexedDB.deleteDatabase(createPersistenceKey('email-threads', 0));-} catch {}-setupQueryPersistence({queryClient,scopes: createQueryPersistenceScopes(buster),diff --git a/js/app/packages/queries/persistence-scopes.ts b/js/app/packages/queries/persistence-scopes.tsindex d162a9558d..033adcc670 100644--- a/js/app/packages/queries/persistence-scopes.ts+++ b/js/app/packages/queries/persistence-scopes.ts@@ -6,9 +6,6 @@ import { createPerQueryIDBStore } from './persistence/per-query-idb';const persistedChannelQueryPrefixes = [channelKeys.withID._def,channelKeys.mentions._def,- channelKeys.attachments._def,- channelKeys.participants._def,- channelKeys.threadReplies._def,channelKeys.activity.queryKey,channelKeys.listChannels.queryKey,] as const;