Skip to content

Commit 5b3061b

Browse files
committed
fix 304
1 parent 4b85862 commit 5b3061b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/api/chat/chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export async function markAsRead(
4444
"POST",
4545
endpoints.markAsRead(relationId, messageId),
4646
);
47-
if (res.status !== 200)
47+
if (res.status !== 200 && res.status !== 304)
4848
throw new Error(
49-
`on markAsRead(), expected status code of 200, but got ${res.status}`,
49+
`on markAsRead(), expected status code of 200 or 304, but got ${res.status}`,
5050
);
5151
}
5252

0 commit comments

Comments
 (0)