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: Remove unused operators.

Aman Agrawal2a1fdb21ac50
diff --git a/web/src/filter.ts b/web/src/filter.ts
index b757906b8c0..e0c1c156074 100644
--- a/web/src/filter.ts
+++ b/web/src/filter.ts
@@ -548,10 +548,8 @@ export class Filter {
case "sender":
case "from":
case "dm":
- case "pm":
case "pm-with":
case "dm-including":
- case "pm-including":
if (term.operand === "me") {
return true;
}
diff --git a/web/src/state_data.ts b/web/src/state_data.ts
index 783211b3899..17d803b8975 100644
--- a/web/src/state_data.ts
+++ b/web/src/state_data.ts
@@ -35,8 +35,6 @@ export const narrow_term_schema = z.object({
"in",
"is",
"near",
- "pm",
- "pm-including",
"pm-with",
"search",
"sender",