I’m creating a dating app with a messaging system, making pretty good progress. I need help with the following:
I’d like users to be able to block other users. So I placed a button “Block” on their profile but I can’t find an appropriate action for that. I added a Boolean field on the user table, but that’s where I’m stuck, any ideas?
I would also like to mark messages as “read” once they are read with a date/time stamp. So as soon as the other person reads the message, it should record the date/time and mark it as read. How can I do that?
I’d like to have them login and then see a profile form page for them to complete, how do I take them there?
I’d like all emails to be unique, how do I prevent new users from entering already existing email address?
I did this a while ago, I record them to a new sheet, each “blocking” relation is a new row. It contains email 1 and email 2 in an array format for Glide.
Then in the user profiles sheet, make a relation to the blocking sheet, return all the emails in those columns. If I recall right, what I did was only show another user’s profile to signed-in user if blocking lookup doesn’t contain that profile email.
Admittedly I haven’t made a step to let a user unblock another user but probably you can let them delete the blocking row.