Don't show loading spinner if just paginating
This commit is contained in:
parent
2fdec51a5b
commit
50f05db29e
1 changed files with 1 additions and 1 deletions
|
@ -91,6 +91,7 @@ module.exports = React.createClass({
|
||||||
this.nextBatch = null;
|
this.nextBatch = null;
|
||||||
this.setState({
|
this.setState({
|
||||||
publicRooms: [],
|
publicRooms: [],
|
||||||
|
loading: true,
|
||||||
});
|
});
|
||||||
this.getMoreRooms().done();
|
this.getMoreRooms().done();
|
||||||
},
|
},
|
||||||
|
@ -100,7 +101,6 @@ module.exports = React.createClass({
|
||||||
const opts = {limit: 20};
|
const opts = {limit: 20};
|
||||||
if (this.nextBatch) opts.since = this.nextBatch;
|
if (this.nextBatch) opts.since = this.nextBatch;
|
||||||
if (this.filterString) opts.filter = { generic_search_term: my_filter_string } ;
|
if (this.filterString) opts.filter = { generic_search_term: my_filter_string } ;
|
||||||
this.setState({loading: true});
|
|
||||||
return MatrixClientPeg.get().publicRooms(opts).then((data) => {
|
return MatrixClientPeg.get().publicRooms(opts).then((data) => {
|
||||||
if (my_filter_string != this.filterString) {
|
if (my_filter_string != this.filterString) {
|
||||||
// if the filter has changed since this request was sent,
|
// if the filter has changed since this request was sent,
|
||||||
|
|
Loading…
Reference in a new issue