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.

compose_tooltips: Fix tooltip comparing stream ID to stream name.

Tim Abbottfe60fb4d718f
diff --git a/web/src/compose_tooltips.ts b/web/src/compose_tooltips.ts
index 690fb5131b0..5fbc16bc9e2 100644
--- a/web/src/compose_tooltips.ts
+++ b/web/src/compose_tooltips.ts
@@ -369,7 +369,7 @@ export function initialize(): void {
_.isEqual(narrow_filter.sorted_term_types(), ["channel"]) &&
compose_state.get_message_type() === "stream" &&
narrow_filter.terms_with_operator("channel")[0]!.operand ===
- compose_state.stream_name()
+ compose_state.stream_id()?.toString()
) {
display_current_view = $t({
defaultMessage: "Currently viewing the entire channel.",