Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
#278: Implement current room exclusion for rocketchat search (chatpal)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyman Aparviz committed Apr 10, 2019
1 parent 54fb023 commit 4a5742a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integration/rocket-chat/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,9 @@ function SmartiWidget(element, _options) {
lastContext = context;

payload.custom = {};
if(params.query.contextMsgs) {
if(params.query.params.excludeCurrentChannel && params.query.params.channel_id) {
payload.custom["excl.room"] = [params.query.params.channel_id];
} else if(params.query.contextMsgs) {
payload.custom["excl.msg"] = params.query.contextMsgs;
}
if(params.query.contextQuery) {
Expand Down

0 comments on commit 4a5742a

Please sign in to comment.