mirror of https://github.com/zulip/zulip.git
Fix narrowing to pm-with lists not in alphabetical order.
Previously if you narrowed to "pm-with:wdaher@humbughq.com,jbarnold@humbughq.com", you'd always get no results because our filter was comparing your query against message.reply_to, which is sorted in alphabetical order. (imported from commit 40dc78640f3b010f11312176cfcf3c331fdf3337)
This commit is contained in:
parent
1d37238a89
commit
b1d1863604
|
@ -229,7 +229,7 @@ function build_filter(operators_mixed_case) {
|
|||
|
||||
case 'pm-with':
|
||||
if ((message.type !== 'private') ||
|
||||
(message.reply_to.toLowerCase() !== operand))
|
||||
message.reply_to.toLowerCase() !== operand.split(',').sort().join(','))
|
||||
return false;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue