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:
Tim Abbott 2013-03-04 17:55:59 -05:00
parent 1d37238a89
commit b1d1863604
1 changed files with 1 additions and 1 deletions

View File

@ -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;