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:
parent
6b617f893d
commit
dca202427a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user