mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
Previously, this was unconditional wrt local echoe which caused a bug where by the pencil edit icon was visible first, then got hidden when the chevron and star became visible. This commit resolves the above bug, but this area still behaves slightly weirdly in that, if, within a PM narrow, the user's mouse cursor is over the spot where the message edit controls will appear after sending, and then a message is sent by the user, only the chevron and star appear at first. On cursor exit and reenter, all three controls reappear ie the final state is correct. Similar to the other "unless locally echoed" cases here, this will probably prevent unexpected bugs caused by eg trying to enter edit state before the message was received by the server, and then redrawing later, etc.