Skip to content

armgit / zulip

Public Imported from GitHub
0

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.js
index 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);
}
}