mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 14:49:07 +08:00
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 (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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user