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.

filter: Show stream and topic title for near link narrows.

Lauryn Menard7172a6ef13e0
diff --git a/static/js/filter.js b/static/js/filter.js
index 3ca158afc74..1576e27779c 100644
--- a/static/js/filter.js
+++ b/static/js/filter.js
@@ -662,7 +662,10 @@ export class Filter {
get_title() {
// Nice explanatory titles for common views.
const term_types = this.sorted_term_types();
- if (term_types.length === 2 && _.isEqual(term_types, ["stream", "topic"])) {
+ if (
+ (term_types.length === 3 && _.isEqual(term_types, ["stream", "topic", "near"])) ||
+ (term_types.length === 2 && _.isEqual(term_types, ["stream", "topic"]))
+ ) {
if (!this._sub) {
const search_text = this.operands("stream")[0];
return $t({defaultMessage: "Unknown stream #{search_text}"}, {search_text});