From 2051f38f25ef9ddc2e3da90caac8897d0e7a4f34 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 29 Jun 2020 17:24:51 +0200 Subject: [PATCH] Don't send a notification to yourself when removing an owner --- www/common/inner/access.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/inner/access.js b/www/common/inner/access.js index 28dd2863b..6568ff83b 100644 --- a/www/common/inner/access.js +++ b/www/common/inner/access.js @@ -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,