From a0dd867f330f022e03c83b98f97701af2bdac855 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 20 Oct 2017 18:09:09 +0200 Subject: [PATCH] Fix pending state not removed after friend invite rejected --- www/common/sframe-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index 0b76dca49..19506e038 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -343,7 +343,7 @@ define([ Cryptpad.confirm(confirmMsg, cb, null, true); }); ctx.sframeChan.on('EV_FRIEND_REQUEST', function (data) { - var i = pendingFriends.indexOf(data.sender); + var i = pendingFriends.indexOf(data.netfluxId); if (i !== -1) { pendingFriends.splice(i, 1); } Cryptpad.log(data.logText); });