From e00605571bc9ef68ff9f2cec33b06ee7213ae457 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 5 May 2017 10:48:54 +0100 Subject: [PATCH] Fix the spinner to actually appear We started with clientSyncState being null, which it remained until the SYNCING event was emitted. We need to set clientSyncState's initial value correctly. --- src/components/structures/TimelinePanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index d29a08ceb4..7c89694a29 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -170,7 +170,7 @@ var TimelinePanel = React.createClass({ forwardPaginating: false, // cache of matrixClient.getSyncState() (but from the 'sync' event) - clientSyncState: null, + clientSyncState: MatrixClientPeg.get().getSyncState(), }; },