Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canceling my Friendship request #97

Open
mughalles opened this issue Jan 30, 2018 · 4 comments
Open

Canceling my Friendship request #97

mughalles opened this issue Jan 30, 2018 · 4 comments

Comments

@mughalles
Copy link

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

@hootlex
Copy link
Owner

hootlex commented Jan 30, 2018

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

@heidilux
Copy link

what about...

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

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

Just a thought :)

@jaspervanbrian
Copy link

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.

@cesarlanz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants