diff --git a/lib/search.rb b/lib/search.rb index 92bd1b527f0..be4beb5a5e0 100644 --- a/lib/search.rb +++ b/lib/search.rb @@ -436,6 +436,9 @@ class Search elsif word == 'in:private' @search_pms = true nil + elsif word =~ /^private_messages:(.+)$/ + @search_pms = true + nil else found ? nil : word end