From 50f05db29e10d335f0d40bb9402bf4d60cb20430 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 16 Sep 2016 19:29:56 +0100 Subject: [PATCH] Don't show loading spinner if just paginating --- src/components/structures/RoomDirectory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomDirectory.js b/src/components/structures/RoomDirectory.js index 2675f22e..9f3ee04b 100644 --- a/src/components/structures/RoomDirectory.js +++ b/src/components/structures/RoomDirectory.js @@ -91,6 +91,7 @@ module.exports = React.createClass({ this.nextBatch = null; this.setState({ publicRooms: [], + loading: true, }); this.getMoreRooms().done(); }, @@ -100,7 +101,6 @@ module.exports = React.createClass({ const opts = {limit: 20}; if (this.nextBatch) opts.since = this.nextBatch; if (this.filterString) opts.filter = { generic_search_term: my_filter_string } ; - this.setState({loading: true}); return MatrixClientPeg.get().publicRooms(opts).then((data) => { if (my_filter_string != this.filterString) { // if the filter has changed since this request was sent,