Fix pending state not removed after friend invite rejected
This commit is contained in:
parent
c25be21138
commit
a0dd867f33
@ -343,7 +343,7 @@ define([
|
|||||||
Cryptpad.confirm(confirmMsg, cb, null, true);
|
Cryptpad.confirm(confirmMsg, cb, null, true);
|
||||||
});
|
});
|
||||||
ctx.sframeChan.on('EV_FRIEND_REQUEST', function (data) {
|
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); }
|
if (i !== -1) { pendingFriends.splice(i, 1); }
|
||||||
Cryptpad.log(data.logText);
|
Cryptpad.log(data.logText);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user