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

@@ -69,7 +69,7 @@ define([
var setName = function (ctx, value, cb) {
cb = cb || function () {};
ctx.profile.name = value;
ctx.listmap.proxy.name = value;
Realtime.whenRealtimeSyncs(ctx.listmap.realtime, function () {
if (!ctx.listmap) { return; }
ctx.emit('UPDATE', ctx.listmap.proxy, ctx.clients);
@@ -123,8 +123,6 @@ define([
ctx.profile = store.proxy.profile = store.proxy.profile || {};
console.log(ctx.profile);
initializeProfile(ctx, waitFor(function (err) {
if (err) { return; }
openChannel(ctx);