refactor: proper websocket message types

This commit is contained in:
Elian Doran
2025-09-13 12:54:53 +03:00
parent 998688573d
commit 4cd0702cbb
19 changed files with 164 additions and 170 deletions

View File

@@ -107,7 +107,7 @@ function makeToast(message: Message, title: string, text: string): ToastOptions
}
ws.subscribeToMessages(async (message) => {
if (message.taskType !== "protectNotes") {
if (!("taskType" in message) || message.taskType !== "protectNotes") {
return;
}