Merge pull request #1019 from matrix-org/t3chguy/updating_stuff

manual check for updates
This commit is contained in:
David Baker 2017-06-22 17:36:55 +01:00 committed by GitHub
commit ac3e039e2a
4 changed files with 29 additions and 2 deletions

View file

@ -157,6 +157,7 @@ module.exports = React.createClass({
newVersion: null,
hasNewVersion: false,
newVersionReleaseNotes: null,
checkingForUpdate: null,
// Parameters used in the registration dance with the IS
register_client_secret: null,
@ -555,6 +556,9 @@ module.exports = React.createClass({
payload.releaseNotes,
);
break;
case 'check_updates':
this.setState({ checkingForUpdate: payload.value });
break;
case 'send_event':
this.onSendEvent(payload.room_id, payload.event);
break;
@ -1300,6 +1304,7 @@ module.exports = React.createClass({
newVersion: latest,
hasNewVersion: current !== latest,
newVersionReleaseNotes: releaseNotes,
checkingForUpdate: null,
});
},