Use new searchRoomEvents and backPaginateRoomEventsSearch methods
MatrixClient now exposes higher-level search APIs, so use them.
This commit is contained in:
parent
103b0a03b1
commit
cc72f7ec24
2 changed files with 74 additions and 93 deletions
|
@ -110,7 +110,7 @@ module.exports = React.createClass({
|
|||
var searchStatus;
|
||||
// don't display the search count until the search completes and
|
||||
// gives us a non-null searchCount.
|
||||
if (this.props.searchInfo && this.props.searchInfo.searchCount !== null) {
|
||||
if (this.props.searchInfo && this.props.searchInfo.searchCount != null) {
|
||||
searchStatus = <div className="mx_RoomHeader_searchStatus"> (~{ this.props.searchInfo.searchCount } results)</div>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue