From 6bf3bee473f2008ee756256a1ce11a669ef1a1a0 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 21 Dec 2017 12:30:41 +1100 Subject: [PATCH] FIX: when leaving PM tab revert to user scoped search --- .../discourse/routes/build-private-messages-route.js.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/routes/build-private-messages-route.js.es6 b/app/assets/javascripts/discourse/routes/build-private-messages-route.js.es6 index 63fa6d56e8a..b20e9e1b3dc 100644 --- a/app/assets/javascripts/discourse/routes/build-private-messages-route.js.es6 +++ b/app/assets/javascripts/discourse/routes/build-private-messages-route.js.es6 @@ -32,7 +32,10 @@ export default (viewName, path) => { }, deactivate() { - this.searchService.set('contextType', 'private_messages'); + this.searchService.set( + 'searchContext', + this.controllerFor("user").get("model.searchContext") + ); } }); };