Fix metadata not updated when creating a team
This commit is contained in:
parent
b1dab8e75a
commit
0de7395258
@ -449,6 +449,15 @@ define([
|
|||||||
return void cb({error: 'CHAT_INIT_ERROR'});
|
return void cb({error: 'CHAT_INIT_ERROR'});
|
||||||
};
|
};
|
||||||
cpNf2 = CpNetflux.start(chatCfg);
|
cpNf2 = CpNetflux.start(chatCfg);
|
||||||
|
}).nThen(function (waitFor) {
|
||||||
|
roster.metadata({
|
||||||
|
name: data.name
|
||||||
|
}, waitFor(function (err) {
|
||||||
|
if (err) {
|
||||||
|
waitFor.abort();
|
||||||
|
return void cb({error: 'ROSTER_INIT_ERROR'});
|
||||||
|
}
|
||||||
|
}));
|
||||||
}).nThen(function () {
|
}).nThen(function () {
|
||||||
var lm = Listmap.create(config);
|
var lm = Listmap.create(config);
|
||||||
var proxy = lm.proxy;
|
var proxy = lm.proxy;
|
||||||
@ -486,6 +495,7 @@ define([
|
|||||||
proxy.drive = {};
|
proxy.drive = {};
|
||||||
|
|
||||||
onReady(ctx, id, lm, roster, keys, cId, function () {
|
onReady(ctx, id, lm, roster, keys, cId, function () {
|
||||||
|
ctx.updateMetadata();
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
}).on('error', function (info) {
|
}).on('error', function (info) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user