mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 18:43:52 +00:00
Instead of using setInterval to call send_presence_to_server repeatedly, we now simluate setInterval using setTimeout. This change helps us to avoid the condition likely related to resume from suspend, when the browser tries to catch up by running a large number of "missed" copies of the setInterval hook, causing the server to rate-limit the client. Fixes #23438.