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.
This commit is contained in:
Reto Brunner 2022-11-12 16:59:57 +01:00
parent 6b617f893d
commit dca202427a

View file

@ -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,