I’m building a kind of simple social network site.
I’m building a sequence that allows users to invite others to the app via emails. Once the invitee signs up and accepts the invitation two users are connected.
I’m wondering how to display a list of connected users that have different relationship statuses; sender/ recipient, pending/ confirmed
To do that I create one data type to define all relationships.
First user is the sender, the second user is the recipient (invitee). When the recipient signs up, the relationship type will be updated.
But I don’t know how to correctly select the user IDs to display in my Friend’s list, covering the two scenarios.
In theory, I should create a logic that searches the User ID associated with the current users.
Do you think I should store that information in the Users’ data type, creating two rows strong two different status: pending & connected? Or is there a way to run such logic on the fly?
It’s my second week in bubble dev. I’m relying on your guys