mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
We explicitly bind `this` to MessageState class which otherwise was defaulting to `window`. This resulted in variables like `this.received` and `this.local_id` being incorrectly interpreted by called function as `window.(received | local_id)` which are `undefined`. Hence, frontend thinks that the message was never received. It was noticed since this was the common log message when a double message send bug was observed. This change in no was indicates fixing of the double send bug, but is hopefully one step forward in that direction.
3.9 KiB
3.9 KiB