Fix pending state not removed after friend invite rejected

This commit is contained in:
yflory 2017-10-20 18:09:09 +02:00
parent c25be21138
commit a0dd867f33
1 changed files with 1 additions and 1 deletions

View File

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