You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Review comments
This commit is contained in:
@@ -19,6 +19,10 @@ limitations under the License.
|
|||||||
var MatrixClientPeg = require("./MatrixClientPeg");
|
var MatrixClientPeg = require("./MatrixClientPeg");
|
||||||
var Notifier = require("./Notifier");
|
var Notifier = require("./Notifier");
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TODO: Make things use this. This is all WIP - see UserSettings.js for usage.
|
||||||
|
*/
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
loadProfileInfo: function() {
|
loadProfileInfo: function() {
|
||||||
@@ -35,7 +39,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
saveThreePids: function(threePids) {
|
saveThreePids: function(threePids) {
|
||||||
|
// TODO
|
||||||
},
|
},
|
||||||
|
|
||||||
getEnableNotifications: function() {
|
getEnableNotifications: function() {
|
||||||
|
|||||||
@@ -58,8 +58,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {
|
return {
|
||||||
phase: this.Phases.Edit,
|
phase: this.Phases.Edit
|
||||||
errorString: ''
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -73,8 +72,7 @@ module.exports = React.createClass({
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
phase: this.Phases.Uploading,
|
phase: this.Phases.Uploading
|
||||||
errorString: '',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
@@ -84,8 +82,7 @@ module.exports = React.createClass({
|
|||||||
self.props.onError(err);
|
self.props.onError(err);
|
||||||
}).finally(function() {
|
}).finally(function() {
|
||||||
self.setState({
|
self.setState({
|
||||||
phase: self.Phases.Edit,
|
phase: self.Phases.Edit
|
||||||
errorString: ""
|
|
||||||
});
|
});
|
||||||
}).done();
|
}).done();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user