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: Add hashtag icon to navbar in `-is:dm` common narrow.

Pratik Chanda5d065fdcd3da
diff --git a/web/src/filter.ts b/web/src/filter.ts
index e27b4367fab..d7c46ffacd3 100644
--- a/web/src/filter.ts
+++ b/web/src/filter.ts
@@ -1350,6 +1350,9 @@ export class Filter {
case "is-dm":
zulip_icon = "user";
break;
+ case "not-is-dm":
+ zulip_icon = "hashtag";
+ break;
case "is-starred":
zulip_icon = "star";
break;
diff --git a/web/tests/filter.test.cjs b/web/tests/filter.test.cjs
index c9577d2fc0f..c4876bb67b3 100644
--- a/web/tests/filter.test.cjs
+++ b/web/tests/filter.test.cjs
@@ -2532,7 +2532,7 @@ test("navbar_helpers", ({override}) => {
{
terms: not_is_dm,
is_common_narrow: true,
- icon: undefined,
+ zulip_icon: "hashtag",
title: "translated: Channel messages",
redirect_url_with_search: "/#narrow/-is/dm",
},