Open the mailbox when joining a team

pull/1/head
yflory 5 years ago
parent 24c7ea985d
commit 4faa0839f9

@ -773,6 +773,12 @@ define([
ctx.onReadyHandlers[id] = []; ctx.onReadyHandlers[id] = [];
openChannel(ctx, team, id, function (obj) { openChannel(ctx, team, id, function (obj) {
if (!(obj && obj.error)) { console.debug('Team joined:' + id); } if (!(obj && obj.error)) { console.debug('Team joined:' + id); }
var t = ctx.store.proxy.teams[id];
ctx.store.mailbox.open('team-'+id, t.keys.mailbox, function () {
// Team mailbox loaded
}, true, {
owners: t.keys.drive.edPublic
});
ctx.updateMetadata(); ctx.updateMetadata();
cb(obj); cb(obj);
}); });

Loading…
Cancel
Save