Don't send a notification to yourself when removing an owner

pull/1/head
yflory 5 years ago
parent 9c68714018
commit 2051f38f25

@ -110,7 +110,8 @@ define([
})); }));
}).nThen(function (waitFor) { }).nThen(function (waitFor) {
var curve = $el.attr('data-curve'); var curve = $el.attr('data-curve');
var friend = curve === user.curvePublic ? user : friends[curve]; if (curve === user.curvePublic) { return; }
var friend = friends[curve];
if (!friend) { return; } if (!friend) { return; }
common.mailbox.sendTo("RM_OWNER", { common.mailbox.sendTo("RM_OWNER", {
channel: channel, channel: channel,

Loading…
Cancel
Save