|
|
@ -390,7 +390,7 @@
|
|
|
|
// Get the pending friend requests that match the direction
|
|
|
|
// Get the pending friend requests that match the direction
|
|
|
|
// If no direction is supplied then return all pending friend requests
|
|
|
|
// If no direction is supplied then return all pending friend requests
|
|
|
|
return messages.models.filter(m => {
|
|
|
|
return messages.models.filter(m => {
|
|
|
|
if (!status.includes(m.get('friendStatus')) return false;
|
|
|
|
if (!status.includes(m.get('friendStatus'))) return false;
|
|
|
|
return direction === null || m.get('direction') === direction;
|
|
|
|
return direction === null || m.get('direction') === direction;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|