From 4faa0839f9e7d972d0c07b57b6ce64a2e1902f91 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 10 Jun 2020 12:29:29 +0200 Subject: [PATCH] Open the mailbox when joining a team --- www/common/outer/team.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/common/outer/team.js b/www/common/outer/team.js index c495bc91c..5c31621f7 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -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); });