|
|
@ -126,6 +126,7 @@ define([
|
|
|
|
team.proxy = {};
|
|
|
|
team.proxy = {};
|
|
|
|
team.stopped = true;
|
|
|
|
team.stopped = true;
|
|
|
|
delete ctx.teams[teamId];
|
|
|
|
delete ctx.teams[teamId];
|
|
|
|
|
|
|
|
delete ctx.cache[teamId];
|
|
|
|
delete ctx.store.proxy.teams[teamId];
|
|
|
|
delete ctx.store.proxy.teams[teamId];
|
|
|
|
ctx.emit('LEAVE_TEAM', teamId, team.clients);
|
|
|
|
ctx.emit('LEAVE_TEAM', teamId, team.clients);
|
|
|
|
ctx.updateMetadata();
|
|
|
|
ctx.updateMetadata();
|
|
|
@ -327,7 +328,6 @@ define([
|
|
|
|
nThen(function (waitFor) {
|
|
|
|
nThen(function (waitFor) {
|
|
|
|
// Load the shared folders
|
|
|
|
// Load the shared folders
|
|
|
|
ctx.teams[id] = team;
|
|
|
|
ctx.teams[id] = team;
|
|
|
|
delete ctx.cache[id];
|
|
|
|
|
|
|
|
registerChangeEvents(ctx, team, proxy);
|
|
|
|
registerChangeEvents(ctx, team, proxy);
|
|
|
|
var network = ctx.store.network || ctx.store.networkPromise;
|
|
|
|
var network = ctx.store.network || ctx.store.networkPromise;
|
|
|
|
SF.loadSharedFolders(ctx.Store, network, team,
|
|
|
|
SF.loadSharedFolders(ctx.Store, network, team,
|
|
|
|