From dca202427aa543d43d18fb72ae10ffa51b3b6c60 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 12 Nov 2022 16:59:57 +0100 Subject: [PATCH] SearchResults: Fix search progess upon search When we hit doSearch, we always reset the offset value to 0, meaning we always hit the conditional (!0) and always set the messageSearchInProgress flag to undefined. This is wrong, we do want to set this flag when we initiate a search. --- client/components/Windows/SearchResults.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/components/Windows/SearchResults.vue b/client/components/Windows/SearchResults.vue index b6265e2b..c4d799ed 100644 --- a/client/components/Windows/SearchResults.vue +++ b/client/components/Windows/SearchResults.vue @@ -189,11 +189,6 @@ export default defineComponent({ const doSearch = () => { offset.value = 0; store.commit("messageSearchInProgress", true); - - if (!offset.value) { - store.commit("messageSearchInProgress", undefined); // Only reset if not getting offset - } - socket.emit("search", { networkUuid: network.value?.uuid, channelName: channel.value?.name,