FIX: add proper search context for personal messages

This commit is contained in:
Arpit Jalan 2018-05-30 14:45:45 +05:30
parent 01da2a21bf
commit 704cca3de2
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ export default createWidget('search-menu', {
if (contextEnabled && ctx) {
if (this.currentUser &&
ctx.id.toString().toLowerCase() === this.currentUser.username_lower &&
ctx.id.toString().toLowerCase() === this.currentUser.get('username_lower') &&
type === "private_messages") {
query += ' in:private';
} else {