mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
Trying to collapse a locally echoed message is a rare thing to do, and it was buggy before this due to races between the server acking the original message and the user flipping the collapsed flag. We now calculate `should_display_collapse` and `should_display_uncollapse` in the JS code and simplify the template by eliminating all the inline if/else logic. (Note that we are about to disable the message menu altogether for locally echoed messages, so this change is partly future-proofing for when we put the menu back for more innocuous commands.) |
||
|---|---|---|
| .. | ||
| assets | ||
| audio | ||
| generated | ||
| html | ||
| icons/fonts | ||
| images | ||
| js | ||
| locale | ||
| styles | ||
| swagger | ||
| templates | ||
| third | ||
| ts | ||
| .gitignore | ||
| favicon.ico | ||
| node_modules | ||