summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-05-09 12:00:08 -0400
committerCorey Hulen <corey@hulen.com>2016-05-09 09:00:08 -0700
commit07126101d379b900724c7c5cfc82070b42c235d6 (patch)
tree80b2485b61eb1684cd6127473267af206c3ab1c2 /webapp/utils
parent9e07f4b021b28a3e301359a48cf950298f3e552e (diff)
downloadchat-07126101d379b900724c7c5cfc82070b42c235d6.tar.gz
chat-07126101d379b900724c7c5cfc82070b42c235d6.tar.bz2
chat-07126101d379b900724c7c5cfc82070b42c235d6.zip
Recent mention searches now OR terms instead of AND (#2931)
Diffstat (limited to 'webapp/utils')
-rw-r--r--webapp/utils/async_client.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx
index 1dcead326..a562964b1 100644
--- a/webapp/utils/async_client.jsx
+++ b/webapp/utils/async_client.jsx
@@ -467,7 +467,7 @@ export function getAllTeamListings() {
);
}
-export function search(terms) {
+export function search(terms, isOrSearch) {
if (isCallInProgress('search_' + String(terms))) {
return;
}
@@ -475,6 +475,7 @@ export function search(terms) {
callTracker['search_' + String(terms)] = utils.getTimestamp();
Client.search(
terms,
+ isOrSearch,
(data) => {
callTracker['search_' + String(terms)] = 0;
@@ -1370,4 +1371,4 @@ export function getPublicLink(filename, success, error) {
}
}
);
-} \ No newline at end of file
+}