[FIX] Search Message stops showing the correct result (#4253)
This commit is contained in:
parent
11c8510398
commit
496d3f2ceb
|
@ -168,6 +168,7 @@ class SearchMessagesView extends React.Component<ISearchMessagesViewProps, ISear
|
|||
}
|
||||
return message;
|
||||
});
|
||||
this.offset += QUERY_SIZE;
|
||||
return urlRenderMessages;
|
||||
}
|
||||
return [];
|
||||
|
@ -258,8 +259,6 @@ class SearchMessagesView extends React.Component<ISearchMessagesViewProps, ISear
|
|||
return;
|
||||
}
|
||||
this.setState({ loading: true });
|
||||
this.offset += QUERY_SIZE;
|
||||
|
||||
await this.getMessages(searchText);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue