diff --git a/www/common/outer/team.js b/www/common/outer/team.js index 22daac68c..966c30a53 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -138,6 +138,15 @@ define([ if (membersChannel) { list.push(membersChannel); } if (mailboxChannel) { list.push(mailboxChannel); } + var state = store.roster.getState(); + if (state.members) { + Object.keys(state.members).forEach(function (curve) { + var m = state.members[curve]; + if (m.inviteChannel) { list.push(m.inviteChannel); } + if (m.previewChannel) { list.push(m.previewChannel); } + }); + } + list.sort(); return list; }; @@ -1317,6 +1326,9 @@ define([ /// XXX callback if error */ }).nThen(function (w) { + team.pin([inviteKeys.channel, previewKeys.channel], function (obj) { + if (obj && obj.error) { console.error(obj.error); } + }); Invite.createRosterEntry(team.roster, { curvePublic: ephemeralKeys.curvePublic, content: {