diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js
index 23b28e0a0a..b135ea747d 100644
--- a/src/components/structures/UserSettings.js
+++ b/src/components/structures/UserSettings.js
@@ -40,7 +40,7 @@ module.exports = React.createClass({
avatarUrl: null,
threePids: [],
clientVersion: version,
- phase: "UserSettings.LOADING", // LOADING, DISPLAY, SAVING
+ phase: "UserSettings.LOADING", // LOADING, DISPLAY
};
},
@@ -71,13 +71,15 @@ module.exports = React.createClass({
componentDidMount: function() {
this.dispatcherRef = dis.register(this.onAction);
+ this._me = MatrixClientPeg.get().credentials.userId;
},
componentWillUnmount: function() {
dis.unregister(this.dispatcherRef);
},
- onSaveClicked: function(ev) {
+/*
+ onSaveClicked: function(ev) { // XXX unused
var self = this;
var savePromises = [];
@@ -116,7 +118,7 @@ module.exports = React.createClass({
description: error.toString()
});
});
- },
+ }, */
onAction: function(payload) {
if (payload.action === "notifier_enabled") {
@@ -189,14 +191,12 @@ module.exports = React.createClass({
},
render: function() {
- var Loader = sdk.getComponent("elements.Spinner");
- var saving;
switch (this.state.phase) {
case "UserSettings.LOADING":
- return