[FIX] Search Message stops showing the correct result (#4253)

This commit is contained in:
Reinaldo Neto 2022-05-31 14:37:42 -03:00 committed by GitHub
parent 11c8510398
commit 496d3f2ceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -168,6 +168,7 @@ class SearchMessagesView extends React.Component<ISearchMessagesViewProps, ISear
} }
return message; return message;
}); });
this.offset += QUERY_SIZE;
return urlRenderMessages; return urlRenderMessages;
} }
return []; return [];
@ -258,8 +259,6 @@ class SearchMessagesView extends React.Component<ISearchMessagesViewProps, ISear
return; return;
} }
this.setState({ loading: true }); this.setState({ loading: true });
this.offset += QUERY_SIZE;
await this.getMessages(searchText); await this.getMessages(searchText);
}; };