Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

move_message: Use _html naming convention for content rendered as HTML.

apoorvapendse03a2d9f64407
diff --git a/web/src/stream_popover.ts b/web/src/stream_popover.ts
index 678a54df401..ab344e29436 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 7e74939978c..be88cca851e 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 <z-user-names></z-user-names> is not subscribed to &nbsp;<z-stream></z-stream>.
- {{#*inline "z-user-names"}}({{{unsubscribed_participant_formatted_names_list}}}){{/inline}}
+ {{#*inline "z-user-names"}}({{{unsubscribed_participant_formatted_names_list_html}}}){{/inline}}
{{#*inline "z-stream"}}<strong class="highlighted-element">{{> ../inline_decorated_channel_name stream=stream show_colored_icon=true}}</strong>{{/inline}}
{{/tr}}
{{else if few_unsubscribed_participants}}
{{#tr}}
Some topic participants <z-user-names></z-user-names> are not subscribed to &nbsp;<z-stream></z-stream>.
- {{#*inline "z-user-names"}}({{{unsubscribed_participant_formatted_names_list}}}){{/inline}}
+ {{#*inline "z-user-names"}}({{{unsubscribed_participant_formatted_names_list_html}}}){{/inline}}
{{#*inline "z-stream"}}<strong class="highlighted-element">{{> ../inline_decorated_channel_name stream=stream show_colored_icon=true}}</strong>{{/inline}}
{{/tr}}