Merge branch 'soon'

pull/1/head
ansuz 5 years ago
commit e395c0bf1e

@ -3209,6 +3209,11 @@ define([
} }
} }
if (APP.loggedIn && path[0] === FILES_DATA) {
path = [ROOT];
}
appStatus.ready(false); appStatus.ready(false);
currentPath = path; currentPath = path;
var s = $content.scrollTop() || 0; var s = $content.scrollTop() || 0;

@ -891,10 +891,10 @@ define([
onDirectMessage(ctx, msg, sender); onDirectMessage(ctx, msg, sender);
}); });
ctx.store.network.on('disconnect', function () { ctx.store.network.on('disconnect', function () {
ctx.emit('DISCONNECT', null, getAllClients()); ctx.emit('DISCONNECT', null, getAllClients(ctx));
}); });
ctx.store.network.on('reconnect', function () { ctx.store.network.on('reconnect', function () {
ctx.emit('RECONNECT', null, getAllClients()); ctx.emit('RECONNECT', null, getAllClients(ctx));
}); });
messenger.onFriendUpdate = function (curve) { messenger.onFriendUpdate = function (curve) {

@ -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…
Cancel
Save