mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
node tests: Avoid rewiring client_is_active.
This commit is contained in:
committed by
Steve Howell
parent
7a3ba26c78
commit
7a9d0a505d
@@ -76,7 +76,7 @@ export function update_dom_with_unread_counts(counts) {
|
||||
}
|
||||
}
|
||||
|
||||
function mark_client_idle() {
|
||||
export function mark_client_idle() {
|
||||
// When we become idle, we don't immediately send anything to the
|
||||
// server; instead, we wait for our next periodic update, since
|
||||
// this data is fundamentally not timely.
|
||||
@@ -210,7 +210,8 @@ export function send_presence_to_server(want_redraw) {
|
||||
});
|
||||
}
|
||||
|
||||
function mark_client_active() {
|
||||
export function mark_client_active() {
|
||||
// exported for testing
|
||||
if (!client_is_active) {
|
||||
client_is_active = true;
|
||||
send_presence_to_server(false);
|
||||
|
||||
Reference in New Issue
Block a user