Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hash_util: Fix decode_dm_recipient_user_ids_from_narrow_url.
Pratik Chanda79041989a104
diff --git a/web/src/hash_util.ts b/web/src/hash_util.tsindex d8f94072386..e0d8cb6ad92 100644--- a/web/src/hash_util.ts+++ b/web/src/hash_util.ts@@ -513,7 +513,11 @@ export function decode_dm_recipient_user_ids_from_narrow_url(narrow_url: string)return null;}- if (terms[1]?.operator !== "with" && terms[1]?.operator !== "near") {+ if (+ terms[1] !== undefined &&+ terms[1].operator !== "with" &&+ terms[1].operator !== "near"+ ) {return null;}