From 00167fbc0622e2b2a08247622bd00229b6e67ed4 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 28 Mar 2018 11:25:28 +0100 Subject: [PATCH] Init page change state in willMount --- src/components/structures/MatrixChat.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 2c38e3d26e..92baecb787 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -291,6 +291,8 @@ export default React.createClass({ this.handleResize(); window.addEventListener('resize', this.handleResize); + this._pageChanging = false; + // check we have the right tint applied for this theme. // N.B. we don't call the whole of setTheme() here as we may be // racing with the theme CSS download finishing from index.js