Files
zulip/web/templates/message_edit_notice_tooltip.hbs
Lauryn Menard 0f5246400b message-edit: Use last_moved_timestamp for edited/moved indicators.
Use both the last_moved_timestamp and last_edit_timestamp to show
edited and moved indicators/tooltips in the message list view of
the web app, instead of parsing the message edit history array.

We still maintain and build the message edit history array as it's
used for calculating the narrow terms when there is a near operator
and a message has been moved to a different channel or topic.

Updates the tooltip for message edit indicators to include both
the moved and edited time if a message has been both moved and
edited.
2025-03-11 16:42:28 -07:00

31 lines
891 B
Handlebars

<div>
{{#if edit_history_access}}
{{#if edited}}
{{#if moved}}
<div>{{t "View edit and move history"}}</div>
{{else}}
<div>{{t "View edit history"}}</div>
{{/if}}
{{else if moved}}
<div>{{t "View move history"}}</div>
{{/if}}
{{else if message_moved_and_move_history_access}}
<div>{{t "View move history"}}</div>
{{/if}}
{{#if edited}}
<div class="tooltip-inner-content italic">
{{t 'Last edited {edited_time_string}.'}}
</div>
{{/if}}
{{#if moved}}
<div class="tooltip-inner-content italic">
{{t 'Last moved {moved_time_string}.'}}
</div>
{{/if}}
</div>
{{#if edit_history_access}}
{{tooltip_hotkey_hints "Shift" "H"}}
{{else if message_moved_and_move_history_access}}
{{tooltip_hotkey_hints "Shift" "H"}}
{{/if}}