mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
Previously, we cleared the preview element only when cancelling compose, which meant the compose box would be left in an invalid state, showing a preview from a no longer active draft, if switching recipients with it open. Fix this by moving the call to clear the preview state to clear_box, which is called in both the hide_box (close compose) and change recipient code paths for clearing compose after not having sent a message. Fixes #22703.
21 KiB
21 KiB