Fix friend request issue

This commit is contained in:
yflory 2019-05-23 16:13:51 +02:00
parent cb16a2e7e4
commit e1b8d0bc6c
1 changed files with 1 additions and 1 deletions

View File

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