Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

add fancy changelog dialog #416

Merged
merged 1 commit into from
Aug 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/structures/MatrixChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ module.exports = React.createClass({
width: 10000,
sideOpacity: 1.0,
middleOpacity: 1.0,

version: null,
newVersion: null,
};
return s;
},
Expand Down Expand Up @@ -856,6 +859,7 @@ module.exports = React.createClass({
onVersion: function(current, latest) {
this.setState({
version: current,
newVersion: latest,
hasNewVersion: current !== latest
});
},
Expand Down Expand Up @@ -992,7 +996,7 @@ module.exports = React.createClass({

var topBar;
if (this.state.hasNewVersion) {
topBar = <NewVersionBar />;
topBar = <NewVersionBar version={this.state.version} newVersion={this.state.newVersion} />;
}
else if (MatrixClientPeg.get().isGuest()) {
topBar = <GuestWarningBar />;
Expand Down