FIX: Couldn't restrict search to a category
This commit is contained in:
parent
bef80633b1
commit
4dd03ad6fe
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue