Fix friend request issue

pull/1/head
yflory 6 years ago
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…
Cancel
Save