perf(webui): restore cached threads and load mention catalogs on demand
This commit is contained in:
1 parent
c370e2a5a5
commit
1a78ae2b99
13 files changed
+316
-65
No files matched your search
@@ -369,7 +369,7 @@ function parseThreadProjectionEvent(value: unknown): ThreadProjectionEvent {
|
||||
throw new Error(`Invalid WebUI thread projection event: ${value.event}`);
|
||||
}
|
||||
|
||||
function parseWebuiThreadPayload(value: unknown): WebuiThreadPersistedPayload {
|
||||
export function parseWebuiThreadPayload(value: unknown): WebuiThreadPersistedPayload {
|
||||
if (!isRecord(value) || typeof value.schemaVersion !== "number") {
|
||||
throw new Error("Invalid WebUI thread response");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user