FIX: Couldn't restrict search to a category

This commit is contained in:
Robin Ward 2015-08-21 14:39:55 -04:00
parent bef80633b1
commit 4dd03ad6fe
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export default Em.Controller.extend({
const searchContext = this.get('searchContext');
if (this.get('searchContextEnabled')) {
if (searchContext.id.toLowerCase() === this.get('currentUser.username_lower') &&
if (searchContext.id.toString().toLowerCase() === this.get('currentUser.username_lower') &&
searchContext.type === "private_messages"
) {
url += ' in:private';