From ff39d52431203956cebc82078774504e97c0f180 Mon Sep 17 00:00:00 2001 From: Aviral Dasgupta Date: Tue, 16 Aug 2016 03:31:02 +0530 Subject: [PATCH] add fancy changelog dialog --- src/components/structures/MatrixChat.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 8d84cbf7d0..46cad9685b 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -94,6 +94,9 @@ module.exports = React.createClass({ width: 10000, sideOpacity: 1.0, middleOpacity: 1.0, + + version: null, + newVersion: null, }; return s; }, @@ -856,6 +859,7 @@ module.exports = React.createClass({ onVersion: function(current, latest) { this.setState({ version: current, + newVersion: latest, hasNewVersion: current !== latest }); }, @@ -992,7 +996,7 @@ module.exports = React.createClass({ var topBar; if (this.state.hasNewVersion) { - topBar = ; + topBar = ; } else if (MatrixClientPeg.get().isGuest()) { topBar = ;