Fix wrong owner in the properties modal

pull/1/head
yflory 5 years ago
parent c608bdd2dc
commit 92a41f84f7

@ -131,11 +131,14 @@ define([
data.owners.forEach(function (ed) { data.owners.forEach(function (ed) {
// If a friend is an owner, add their name to the list // If a friend is an owner, add their name to the list
// otherwise, increment the list of strangers // otherwise, increment the list of strangers
if (ed === edPublic) {
names.push(Messages.yourself);
return;
}
if (!Object.keys(priv.friends || {}).some(function (c) { if (!Object.keys(priv.friends || {}).some(function (c) {
var friend = priv.friends[c] || {}; var friend = priv.friends[c] || {};
if (friend.edPublic !== ed) { return; } if (friend.edPublic !== ed || c === 'me') { return; }
var name = c === 'me' ? Messages.yourself : friend.displayName; names.push(friend.displayName);
names.push(name);
return true; return true;
})) { })) {
strangers++; strangers++;

Loading…
Cancel
Save