Skip to content

Commit 50f05db

Browse files
committed
Don't show loading spinner if just paginating
1 parent 2fdec51 commit 50f05db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/components/structures/RoomDirectory.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ module.exports = React.createClass({
9191
this.nextBatch = null;
9292
this.setState({
9393
publicRooms: [],
94+
loading: true,
9495
});
9596
this.getMoreRooms().done();
9697
},
@@ -100,7 +101,6 @@ module.exports = React.createClass({
100101
const opts = {limit: 20};
101102
if (this.nextBatch) opts.since = this.nextBatch;
102103
if (this.filterString) opts.filter = { generic_search_term: my_filter_string } ;
103-
this.setState({loading: true});
104104
return MatrixClientPeg.get().publicRooms(opts).then((data) => {
105105
if (my_filter_string != this.filterString) {
106106
// if the filter has changed since this request was sent,

0 commit comments

Comments
 (0)