[NEW] Chatpal: Enable custom search parameters (#13828) (#13829)

pull/13697/head
Peyman Aparviz 6 years ago committed by Diego Sampaio
parent 0383c28d33
commit d99d1588ef
  1. 4
      app/chatpal-search/server/provider/provider.js

@ -313,6 +313,7 @@ class ChatpalProvider extends SearchProvider {
if (!this.index) { return callback({ msg:'Chatpal_currently_not_active' }); }
const type = payload.resultType === 'All' ? ['message', 'user', 'room'] : ['message'];
const params = Object.assign({}, payload.custom);
this.index.query(
text,
@ -321,7 +322,8 @@ class ChatpalProvider extends SearchProvider {
type,
payload.start || 0,
payload.rows || this._settings.get('PageSize'),
callback
callback,
params
);
}

Loading…
Cancel
Save