feat: Add global message search (#1385)

* feat: Search messages by content

* Fix search UI

* Add specs

* chore: Filter search results

* Update highlight logic

* Rename query to searchTerm

Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
Pranav Raj S
2020-11-08 01:46:45 +05:30
committed by GitHub
parent 22683cae66
commit 7718cf7d2c
15 changed files with 399 additions and 30 deletions

View File

@@ -18,6 +18,15 @@ class ConversationApi extends ApiClient {
});
}
search({ q }) {
return axios.get(`${this.url}/search`, {
params: {
q,
page: 1,
},
});
}
toggleStatus(conversationId) {
return axios.post(`${this.url}/${conversationId}/toggle_status`, {});
}