Fix profile not updating the user name

This commit is contained in:
yflory
2019-05-27 15:45:26 +02:00
parent 8641eca34b
commit 61161c034c
3 changed files with 4 additions and 6 deletions

View File

@@ -930,7 +930,7 @@ MessengerUI, Messages) {
$userButton.click(function (e) {
e.preventDefault();
e.stopPropagation();
var myData = metadataMgr.getMetadata().users[metadataMgr.getNetfluxId()];
var myData = metadataMgr.getUserData();
var lastName = myData.name;
UI.prompt(Messages.changeNamePrompt, lastName || '', function (newName) {
if (newName === null && typeof(lastName) === "string") { return; }