mirror of https://github.com/zulip/zulip.git
filter: Don’t parse dm-including operand as a list.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
825fa6f0e1
commit
a68bc645ed
|
@ -232,15 +232,15 @@ function message_matches_search_term(message: Message, operator: string, operand
|
|||
}
|
||||
|
||||
case "dm-including": {
|
||||
const operand_ids = people.pm_with_operand_ids(operand);
|
||||
if (!operand_ids) {
|
||||
const operand_user = people.get_by_email(operand);
|
||||
if (operand_user === undefined) {
|
||||
return false;
|
||||
}
|
||||
const user_ids = people.all_user_ids_in_pm(message);
|
||||
if (!user_ids) {
|
||||
return false;
|
||||
}
|
||||
return user_ids.includes(operand_ids[0]);
|
||||
return user_ids.includes(operand_user.user_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue