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

pull/1/head
yflory 2020-06-29 17:24:51 +02:00
parent 9c68714018
commit 2051f38f25
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ define([
}));
}).nThen(function (waitFor) {
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; }
common.mailbox.sendTo("RM_OWNER", {
channel: channel,