mirror of https://github.com/xwiki-labs/cryptpad
Fix friend request issue
This commit is contained in:
parent
cb16a2e7e4
commit
e1b8d0bc6c
|
@ -17,7 +17,7 @@ define([
|
|||
};
|
||||
handlers['DECLINE_FRIEND_REQUEST'] = function (ctx, box, data, cb) {
|
||||
// Our friend request was declined.
|
||||
if (!ctx.store.proxy.friends_pending[data.msg.author]) { return void cb(true); }
|
||||
if (!ctx.store.proxy.friends_pending[data.msg.author]) { return void cb(); }
|
||||
delete ctx.store.proxy.friends_pending[data.msg.author];
|
||||
ctx.updateMetadata();
|
||||
cb();
|
||||
|
|
Loading…
Reference in New Issue