mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Previously, if you were in the process of editing the last message in a narrow and a new message came in, we'd rerender that second-to-last message, causing your editing widget to lose focus (and thus the next few keys you typed to be interpreted as keyboard shortcuts, which had a good chance of resulting in your navigating somewhere random). This rerendering was essentially unnecessary; the only change to state going into the rendering process was the next_is_same_sender CSS class being toggled on the messagebox in the message. So, at most, we should have been just toggling that CSS class (and this commit makes us do precisely that). It seems like we could further improve this code by just removing the next_is_same_sender CSS class entirely and removing this block, but I'm leaving that for follow-up work. Fixes #11656. |
||
|---|---|---|
| .. | ||
| casper_lib | ||
| casper_tests | ||
| node_tests | ||
| zjsunit | ||
| .eslintrc.json | ||
| run-casper | ||