Fix reset pin with teams
This commit is contained in:
@@ -184,6 +184,21 @@ define([
|
|||||||
list = list.concat(mList);
|
list = list.concat(mList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (store.proxy.teams) {
|
||||||
|
Object.keys(store.proxy.teams).forEach(function (id) {
|
||||||
|
var team = store.proxy.teams[id];
|
||||||
|
if (!team.owner) { return; }
|
||||||
|
list.push(team.channel);
|
||||||
|
var chatChannel = Util.find(team, ['keys', 'chat', 'channel']);
|
||||||
|
var membersChannel = Util.find(team, ['keys', 'members', 'channel']);
|
||||||
|
var mailboxChannel = Util.find(team, ['keys', 'mailbox', 'channel']);
|
||||||
|
if (chatChannel) { list.push(chatChannel); }
|
||||||
|
if (membersChannel) { list.push(membersChannel); }
|
||||||
|
if (mailboxChannel) { list.push(mailboxChannel); }
|
||||||
|
// XXX team mailbox
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
list.push(userChannel);
|
list.push(userChannel);
|
||||||
list.sort();
|
list.sort();
|
||||||
|
|
||||||
|
|||||||
@@ -352,6 +352,8 @@ define([
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
ctx.store.proxy.teams[id] = {
|
ctx.store.proxy.teams[id] = {
|
||||||
|
owner: true,
|
||||||
|
channel: secret.channel,
|
||||||
hash: hash,
|
hash: hash,
|
||||||
password: password,
|
password: password,
|
||||||
keys: keys,
|
keys: keys,
|
||||||
|
|||||||
Reference in New Issue
Block a user