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.

message_view_header: Rename current_stream to more accurate current_sub.

evykassirer86564381cf86
diff --git a/web/src/message_view_header.ts b/web/src/message_view_header.ts
index fce682086a6..640b795e16d 100644
--- a/web/src/message_view_header.ts
+++ b/web/src/message_view_header.ts
@@ -131,15 +131,15 @@ function get_message_view_header_context(filter: Filter | undefined): MessageVie
export function colorize_message_view_header(): void {
const filter = narrow_state.filter();
- let current_stream;
+ let current_sub;
if (filter?.has_operator("channel")) {
- current_stream = stream_data.get_valid_sub_by_id_string(filter.operands("channel")[0]!);
+ current_sub = stream_data.get_valid_sub_by_id_string(filter.operands("channel")[0]!);
}
- if (!current_stream) {
+ if (!current_sub) {
return;
}
// selecting i instead of .fa because web public streams have custom icon.
- $("#message_view_header a.stream i").css("color", current_stream.color);
+ $("#message_view_header a.stream i").css("color", current_sub.color);
}
function append_and_display_title_area(context: MessageViewHeaderContext): void {