stars: Hide stars button on locally echoed messages.

This commit is contained in:
Karl Stolley
2025-02-21 10:34:25 -06:00
committed by Tim Abbott
parent 15f0aa5acd
commit c605c069ed

View File

@@ -17,5 +17,7 @@
</div> </div>
<div class="star_container message_control_button {{#if msg/starred}}{{else}}empty-star{{/if}}" data-tooltip-template-id="{{#if msg/starred}}unstar{{else}}star{{/if}}-message-tooltip-template"> <div class="star_container message_control_button {{#if msg/starred}}{{else}}empty-star{{/if}}" data-tooltip-template-id="{{#if msg/starred}}unstar{{else}}star{{/if}}-message-tooltip-template">
{{#unless msg/locally_echoed}}
<i role="button" tabindex="0" class="message-controls-icon star zulip-icon {{#if msg/starred}}zulip-icon-star-filled{{else}}zulip-icon-star{{/if}}"></i> <i role="button" tabindex="0" class="message-controls-icon star zulip-icon {{#if msg/starred}}zulip-icon-star-filled{{else}}zulip-icon-star{{/if}}"></i>
{{/unless}}
</div> </div>