Open the mailbox when joining a team

pull/1/head
yflory 2020-06-10 12:29:29 +02:00
parent 24c7ea985d
commit 4faa0839f9
1 changed files with 6 additions and 0 deletions

View File

@ -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);
});