Open the mailbox when joining a team
parent
24c7ea985d
commit
4faa0839f9
|
@ -773,6 +773,12 @@ define([
|
|||
ctx.onReadyHandlers[id] = [];
|
||||
openChannel(ctx, team, id, function (obj) {
|
||||
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();
|
||||
cb(obj);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue