web: Add setters for rewired variables.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-11-08 02:33:34 -08:00
committed by Tim Abbott
parent e2cc125583
commit 52e59a9605
46 changed files with 599 additions and 133 deletions

View File

@@ -16,7 +16,11 @@ export function send_flag_update_for_messages(msg_ids: number[], flag: string, o
},
});
}
export const _unread_batch_size = 1000;
export let _unread_batch_size = 1000;
export function rewire__unread_batch_size(value: typeof _unread_batch_size): void {
_unread_batch_size = value;
}
export const send_read = (function () {
let queue: Message[] = [];