FIX: add proper search context for personal messages
This commit is contained in:
parent
01da2a21bf
commit
704cca3de2
|
@ -105,7 +105,7 @@ export default createWidget('search-menu', {
|
||||||
|
|
||||||
if (contextEnabled && ctx) {
|
if (contextEnabled && ctx) {
|
||||||
if (this.currentUser &&
|
if (this.currentUser &&
|
||||||
ctx.id.toString().toLowerCase() === this.currentUser.username_lower &&
|
ctx.id.toString().toLowerCase() === this.currentUser.get('username_lower') &&
|
||||||
type === "private_messages") {
|
type === "private_messages") {
|
||||||
query += ' in:private';
|
query += ' in:private';
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue