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.

hash_util: Lowercase operator before starting to decode.

Aman Agrawalb0b8932e0951
diff --git a/web/src/hash_util.ts b/web/src/hash_util.ts
index fb6f274fe1d..787adcba9e6 100644
--- a/web/src/hash_util.ts
+++ b/web/src/hash_util.ts
@@ -59,6 +59,7 @@ export function encode_stream_id(stream_id: number): string {
}
export function decode_operand(operator: string, operand: string): string {
+ operator = operator.toLowerCase();
if (
operator === "group-pm-with" ||
operator === "dm-including" ||