fix: Search improvements and bug fixes [CW-1604] (#6985)

* fix: Search improvements and bug fixes

* Resets tab to all on search

* Fix index bug with tabs

---------

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
Nithin David Thomas
2023-04-27 13:20:29 +05:30
committed by GitHub
parent 04da8aa8dc
commit c0e905b5d8
4 changed files with 37 additions and 8 deletions

View File

@@ -61,9 +61,11 @@ export const actions = {
isSearchCompleted: false,
});
try {
dispatch('contactSearch', { q });
dispatch('conversationSearch', { q });
dispatch('messageSearch', { q });
await Promise.all([
dispatch('contactSearch', { q }),
dispatch('conversationSearch', { q }),
dispatch('messageSearch', { q }),
]);
} catch (error) {
// Ignore error
} finally {