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) {
|
handlers['DECLINE_FRIEND_REQUEST'] = function (ctx, box, data, cb) {
|
||||||
// Our friend request was declined.
|
// 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];
|
delete ctx.store.proxy.friends_pending[data.msg.author];
|
||||||
ctx.updateMetadata();
|
ctx.updateMetadata();
|
||||||
cb();
|
cb();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user