We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b85862 commit 5b3061bCopy full SHA for 5b3061b
web/api/chat/chat.ts
@@ -44,9 +44,9 @@ export async function markAsRead(
44
"POST",
45
endpoints.markAsRead(relationId, messageId),
46
);
47
- if (res.status !== 200)
+ if (res.status !== 200 && res.status !== 304)
48
throw new Error(
49
- `on markAsRead(), expected status code of 200, but got ${res.status}`,
+ `on markAsRead(), expected status code of 200 or 304, but got ${res.status}`,
50
51
}
52
0 commit comments