PawCorp / walltaker

Take control of your friends wallpapers
13 stars 11 forks source link

[Enhancement] Open/pending Requests #44

Closed Lycraon closed 2 years ago

Lycraon commented 2 years ago

Would be good to see your requests you send to others in https://walltaker.joi.how/friendships/requests, that arend declined or accepted yet.

So i know if i already send somone a request.

pupgray commented 2 years ago

For anyone who might want to make a PR: This is handled by the friendships controller, you could make a new action, to render a list of friendships similarly to the requests action, but using:

#                                     only sent-but-unconfirmed ⬇️ 
Friendship.all.where(sender: current_user).where(confirmed: [nil, false])
#                    ⬆️ `sender` rather than `receiver` to get requests sent BY current user

as your friendship list. Bonus points for a delete button.