|
|
|
@ -1628,11 +1628,11 @@ define([
|
|
|
|
|
// data.send === true ==> send the request
|
|
|
|
|
Store.requestPadAccess = function (clientId, data, cb) {
|
|
|
|
|
var owner = data.owner;
|
|
|
|
|
var owners = data.owners;
|
|
|
|
|
|
|
|
|
|
// If the owner was not is the pad metadata, check if it is a friend.
|
|
|
|
|
// We'll contact the first owner for whom we know the mailbox
|
|
|
|
|
/* // XXX check mailbox in our contacts is not compatible with the new "mute pad" feature
|
|
|
|
|
var owners = data.owners;
|
|
|
|
|
if (!owner && Array.isArray(owners)) {
|
|
|
|
|
var friends = store.proxy.friends || {};
|
|
|
|
|
// If we have friends, check if an owner is one of them (with a mailbox)
|
|
|
|
|