laravel-friendships icon indicating copy to clipboard operation
laravel-friendships copied to clipboard

Canceling my Friendship request

Open mughalles opened this issue 7 years ago • 4 comments

Hallo, first of all thank you for your niche package. What I missed is a function so I can cancel my requests myself. So like

if($me->hasSentFriendRequestTo($recipient)){ $me->cancelSentFriendrequestTo($recipient); }

thanks

mughalles avatar Jan 30 '18 22:01 mughalles

Great idea @mughalles. Can you submit a PR? 🙂

hootlex avatar Jan 30 '18 22:01 hootlex

what about...

if ($me->hasSentFriendRequestTo($recipient) {
    $recipient->denyFriendRequest($me);
}

Otherwise, you'd have to get into adding a new Status.

Just a thought :)

heidilux avatar Jan 30 '18 23:01 heidilux

Yep that's great, but I think we should implement a dedicated function for cancelling user's request, so if the user of this library needs to fire off custom events after cancelling request, he can distinguish whether a user has cancelled his request or the recipient really did deny the friend request. But this solution is nice tho.

jaspervanbrian avatar Nov 27 '18 08:11 jaspervanbrian

Greetings, thanks for your package, I would like to know if there is already a solution to "cancel a friend request"?

cesarlanz avatar Dec 15 '18 02:12 cesarlanz