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); });