Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
sent_messages: Pass correct reference of this in setTimeout.
Aman Agrawal459e1fc21895
diff --git a/static/js/sent_messages.js b/static/js/sent_messages.jsindex de81dea53a4..2d91c0e9fa1 100644--- a/static/js/sent_messages.js+++ b/static/js/sent_messages.js@@ -110,7 +110,7 @@ class MessageState {// wrong with our event loop.if (!this.received) {- setTimeout(this.maybe_restart_event_loop, 5000);+ setTimeout(this.maybe_restart_event_loop.bind(this), 5000);}}