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.

narrow: Return default search title for "group-pm-with" operator.

Lauryn Menarda2e400527965
diff --git a/static/js/narrow.js b/static/js/narrow.js
index e83baad9fcc..94ebc3a1483 100644
--- a/static/js/narrow.js
+++ b/static/js/narrow.js
@@ -158,19 +158,6 @@ function update_narrow_title(filter) {
} else {
set_narrow_title(filter_title);
}
- } else if (filter.has_operator("group-pm-with")) {
- const emails = filter.operands("group-pm-with")[0];
- const user_ids = people.emails_strings_to_user_ids_string(emails);
- if (user_ids !== undefined) {
- const names = people.get_recipients(user_ids);
- set_narrow_title(names + " and others");
- } else {
- if (emails.includes(",")) {
- set_narrow_title("Invalid users");
- } else {
- set_narrow_title("Invalid user");
- }
- }
} else {
set_narrow_title(search_default);
}