Pin the invitation link channels
This commit is contained in:
parent
5a055233c0
commit
35dbfe0bb5
@ -138,6 +138,15 @@ define([
|
|||||||
if (membersChannel) { list.push(membersChannel); }
|
if (membersChannel) { list.push(membersChannel); }
|
||||||
if (mailboxChannel) { list.push(mailboxChannel); }
|
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();
|
list.sort();
|
||||||
return list;
|
return list;
|
||||||
};
|
};
|
||||||
@ -1317,6 +1326,9 @@ define([
|
|||||||
/// XXX callback if error
|
/// XXX callback if error
|
||||||
*/
|
*/
|
||||||
}).nThen(function (w) {
|
}).nThen(function (w) {
|
||||||
|
team.pin([inviteKeys.channel, previewKeys.channel], function (obj) {
|
||||||
|
if (obj && obj.error) { console.error(obj.error); }
|
||||||
|
});
|
||||||
Invite.createRosterEntry(team.roster, {
|
Invite.createRosterEntry(team.roster, {
|
||||||
curvePublic: ephemeralKeys.curvePublic,
|
curvePublic: ephemeralKeys.curvePublic,
|
||||||
content: {
|
content: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user