Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
unread_ops: Convert stream ids to integers before sending request to server.
evykassirer52440c1cffb1
diff --git a/web/src/unread_ops.ts b/web/src/unread_ops.tsindex e7f5307023d..966df26424d 100644--- a/web/src/unread_ops.ts+++ b/web/src/unread_ops.ts@@ -89,6 +89,15 @@ function bulk_update_read_flags_for_narrow(caller_modal_id?: string,): void {let response_html;+ const terms_with_integer_channel_id = narrow.map((term) => {+ if (term.operator === "channel") {+ return {+ ...term,+ operand: Number.parseInt(term.operand, 10),+ };+ }+ return term;+ });const request = {anchor,// anchor="oldest" is an anchor ID lower than any valid@@ -100,7 +109,7 @@ function bulk_update_read_flags_for_narrow(num_after,op,flag: "read",- narrow: JSON.stringify(narrow),+ narrow: JSON.stringify(terms_with_integer_channel_id),};void channel.post({url: "/json/messages/flags/narrow",