Skip to content
Snippets Groups Projects
Commit 05f7a3b4 authored by David Baker's avatar David Baker
Browse files

Remove now redundant displayname stuff from UserSettings now it's in ChangeDisplayName

parent 79e46821
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,6 @@ module.exports = {
getInitialState: function() {
return {
displayName: null,
avatarUrl: null,
threePids: [],
clientVersion: version,
......@@ -34,16 +33,6 @@ module.exports = {
};
},
changeDisplayname: function(new_displayname) {
if (this.state.displayName == new_displayname) return;
var self = this;
return MatrixClientPeg.get().setDisplayName(new_displayname).then(
function() { self.setState({displayName: new_displayname}); },
function(err) { console.err(err); }
);
},
componentWillMount: function() {
var self = this;
var cli = MatrixClientPeg.get();
......@@ -54,7 +43,6 @@ module.exports = {
q.all([profile_d, threepid_d]).then(
function(resps) {
self.setState({
displayName: resps[0].displayname,
avatarUrl: resps[0].avatar_url,
threepids: resps[1].threepids,
phase: self.Phases.Display,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment