From debcc20604294a110ec98ca6790c1004a09eb2cf Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 30 Aug 2018 15:39:48 +0200 Subject: [PATCH] also show spinner on new CATCHUP state --- src/components/structures/TagPanel.js | 2 +- src/components/structures/TimelinePanel.js | 5 +++-- src/components/views/avatars/BaseAvatar.js | 2 +- src/components/views/messages/MImageBody.js | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/structures/TagPanel.js b/src/components/structures/TagPanel.js index 652211595b..f23ac698ba 100644 --- a/src/components/structures/TagPanel.js +++ b/src/components/structures/TagPanel.js @@ -76,7 +76,7 @@ const TagPanel = React.createClass({ _onClientSync(syncState, prevState) { // Consider the client reconnected if there is no error with syncing. - // This means the state could be RECONNECTING, SYNCING or PREPARED. + // This means the state could be RECONNECTING, SYNCING, PREPARED or CATCHUP. const reconnected = syncState !== "ERROR" && prevState !== syncState; if (reconnected) { // Load joined groups diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index 1a03b5d994..e06c652924 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -1146,10 +1146,11 @@ var TimelinePanel = React.createClass({ // of paginating our way through the entire history of the room. const stickyBottom = !this._timelineWindow.canPaginate(EventTimeline.FORWARDS); - // If the state is PREPARED, we're still waiting for the js-sdk to sync with + // If the state is PREPARED or CATCHUP, we're still waiting for the js-sdk to sync with // the HS and fetch the latest events, so we are effectively forward paginating. const forwardPaginating = ( - this.state.forwardPaginating || this.state.clientSyncState == 'PREPARED' + this.state.forwardPaginating || + ['PREPARED', 'CATCHUP'].includes(this.state.clientSyncState) ); return (