diff --git a/app/search/client/provider/result.js b/app/search/client/provider/result.js index 1d62162bd202..0f1714135e80 100644 --- a/app/search/client/provider/result.js +++ b/app/search/client/provider/result.js @@ -18,6 +18,13 @@ Meteor.startup(function() { context: ['search'], action() { const { msg: message } = messageArgs(this); + if (Session.get('openSearchPage')) { + Session.set('openSearchPage', false); + window.setTimeout(() => { + RoomHistoryManager.getSurroundingMessages(message, 50); + }, 400); + return; + } if (Session.get('openedRoom') === message.rid) { return RoomHistoryManager.getSurroundingMessages(message, 50); } diff --git a/app/search/client/search/search.html b/app/search/client/search/search.html index dbb6c5a7f179..280cd79e716c 100644 --- a/app/search/client/search/search.html +++ b/app/search/client/search/search.html @@ -7,11 +7,13 @@ {{/if}} {{else}}
{{{_ provider.description}}}
-{{{_ provider.description}}}
+