From 03a2d9f64407cdbb3cce1bf4cfc44ac777817731 Mon Sep 17 00:00:00 2001 From: apoorvapendse Date: Sat, 19 Jul 2025 13:45:22 +0530 Subject: [PATCH] move_message: Use _html naming convention for content rendered as HTML. Signed-off-by: apoorvapendse --- web/src/stream_popover.ts | 4 ++-- .../modal_banner/unsubscribed_participants_warning_banner.hbs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/stream_popover.ts b/web/src/stream_popover.ts index 678a54df40..ab344e2943 100644 --- a/web/src/stream_popover.ts +++ b/web/src/stream_popover.ts @@ -603,7 +603,7 @@ export async function build_move_topic_to_stream_popover( const participant_names = unsubscribed_participant_ids.map( (user_id) => people.get_user_by_id_assert_valid(user_id).full_name, ); - const unsubscribed_participant_formatted_names_list = + const unsubscribed_participant_formatted_names_list_html = util.format_array_as_list_with_highlighted_elements( participant_names, "long", @@ -625,7 +625,7 @@ export async function build_move_topic_to_stream_popover( hide_close_button: true, stream: destination_stream, selected_propagate_mode, - unsubscribed_participant_formatted_names_list, + unsubscribed_participant_formatted_names_list_html, unsubscribed_participants_count, few_unsubscribed_participants, }; diff --git a/web/templates/modal_banner/unsubscribed_participants_warning_banner.hbs b/web/templates/modal_banner/unsubscribed_participants_warning_banner.hbs index 7e74939978..be88cca851 100644 --- a/web/templates/modal_banner/unsubscribed_participants_warning_banner.hbs +++ b/web/templates/modal_banner/unsubscribed_participants_warning_banner.hbs @@ -3,14 +3,14 @@ {{#if (eq selected_propagate_mode "change_one")}} {{#tr}} Message sender is not subscribed to  . - {{#*inline "z-user-names"}}({{{unsubscribed_participant_formatted_names_list}}}){{/inline}} + {{#*inline "z-user-names"}}({{{unsubscribed_participant_formatted_names_list_html}}}){{/inline}} {{#*inline "z-stream"}}{{> ../inline_decorated_channel_name stream=stream show_colored_icon=true}}{{/inline}} {{/tr}} {{else if few_unsubscribed_participants}} {{#tr}} Some topic participants are not subscribed to  . - {{#*inline "z-user-names"}}({{{unsubscribed_participant_formatted_names_list}}}){{/inline}} + {{#*inline "z-user-names"}}({{{unsubscribed_participant_formatted_names_list_html}}}){{/inline}} {{#*inline "z-stream"}}{{> ../inline_decorated_channel_name stream=stream show_colored_icon=true}}{{/inline}} {{/tr}}