feat: channel muting for desktop and mobile (#838)

This commit is contained in:
Will Pfleger
2026-06-04 15:53:53 -04:00
committed by GitHub
parent 4ead7de463
commit 1fe7bf2872
28 changed files with 2304 additions and 345 deletions

View File

@@ -10,15 +10,15 @@ import { resetMediaCaches } from "@/shared/lib/mediaUrl";
import { clearSearchHitEventCache } from "@/app/navigation/searchHitEventCache";
import { clearAllDrafts } from "@/features/messages/lib/useDrafts";
import { resetAgentObserverStore } from "@/features/agents/observerRelayStore";
import { resetSyncState } from "@/features/sidebar/lib/channelSectionsSync";
import { initFirstWorkspace } from "./workspaceStorage";
import type { Workspace } from "./types";
/**
* Tear down all workspace-scoped module singletons so the new
* workspace starts with a clean slate. If you add a new module-level
* cache or singleton that holds workspace data, add its reset here.
* workspace starts with a clean slate. Hook-managed singletons
* (e.g. ChannelMuteSyncManager, ChannelSectionSyncManager) are
* destroyed via effect cleanup and do not need entries here.
* See AGENTS.md "Workspace Switching" for the full contract.
*/
function resetWorkspaceState(): void {
@@ -27,7 +27,6 @@ function resetWorkspaceState(): void {
resetMediaCaches();
clearSearchHitEventCache();
clearAllDrafts();
resetSyncState();
}
type WorkspaceInitResult =