Patch folder realtime threads locally

This commit is contained in:
kris
2026-04-10 22:01:21 +08:00
parent 0781a56aad
commit a084688e35
7 changed files with 145 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import { subscribeBossEvents, type BossEventPayload } from "@/lib/boss-events";
import {
getAuditSummaryView,
getConversationHomeItemForProject,
getConversationThreadItemForProject,
getConversationItems,
getOpsSummaryView,
} from "@/lib/boss-projections";
@@ -31,6 +32,7 @@ async function buildEventPayload(event: string, payload: BossEventPayload) {
return {
...payload,
conversationItem: getConversationHomeItemForProject(state, String(payload.projectId ?? "")),
threadConversationItem: getConversationThreadItemForProject(state, String(payload.projectId ?? "")),
};
}