[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;
|
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue