mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
Previously, after sending a message from the full-sized compose-box, the compose-box remained in expanded state covering the entire middle part. Instead, it should return to the original state after the message is sent. There's a subtle race that would cause the "Scroll down to see your message" compose notification to appear incorrectly, because the full-size compose box occluded the entire message feed at the time the message was locally echoed, even though it would no longer do so after collapsing. We address that by shrinking the compose box immediately before doing a local echo, in addition to the primary code path in `clear_compose_box`. Care is taken to ensure that we avoid shrinking the compose box when sending a message that cannot be locally echoed and gets an error from the server. Tested on my Ubuntu development environment, by sending empty message, valid message and slash commands. The compose-box only shrunk on sending valid messages. Fixes part of #19353.
23 KiB
23 KiB