Need help on creating private chat

Hello
It occurs to me that if you don’t want to search from choice you can do the following:
If you have a screen with user profiles, when you know who you want to chat with, enter the profile detail and there configure a form button to request chat directed to the message sheet, as they told you above.
Being inside their profile, you can add their email (receiver), your email (active connected to the users table) and then a unique ID, etc.
It remains to be seen if you need any type of acceptance by the other user. It could also be configured.

I would do as Lisa said, but point 5.
The screen could be the profile of the user you want to chat with.
In point 8, being inside the recipient’s profile, you already have the data, you only have to add all the columns you want to the message sheet. And if you have configured the login with that profile sheet, the sender email can also get it.
I hope that helps.
Cheers.-

3 Likes

Echoing @Jeff_Hager and @Mariano_Betta.

Excuse the background noise :slight_smile: But you can see this applied to the Glidegram app. Since button is on the selected profile page, you can set the field to that user’s email.

3 Likes

There is a messages tab and sheet I am confused @Lisa do you mind doing a video tutorial on it please :pray: :pray: :pray:

I will work on a video this weekend :love_you_gesture:

2 Likes

@Lisa thank you so soon much

Still getting used to Loom :grin: Hope this helps!

19 Likes

Thank you sooo much @Lisa

1 Like

Thanks @Lisa, that was very helpful.
(Great Loom video!)

1 Like

It worked and It was very easy

1 Like

Killer video, Lisa!

2 Likes

Thanks everyone. Glad this helps! :love_you_gesture:

1 Like

Nice work @Lisa Thanks for sharing.

1 Like

Perfect @Lisa! Thanks for sharing

1 Like

Hi Lisa - I have 2 (hopefully) quick followup questions:

  1. I’m using Glide’s native lookup functionality to pull a user name into my “Private chat” sheet (Example in 1st screenshot: User relation 1 -> User name, User relation 2 -> User name), but for some reason, I can’t even access this data for use as the “title” element on my inline list of all chats (view featured in screenshot and orange circles indicate where I’m trying to place a user’s name). Any idea what I’m doing wrong, or if there’s an easier way to implement user names as titles in a list?

  2. How have you managed to show the OTHER user’s profile image and info in this list view (I send you a chat, you see my profile image while I see yours)?

Is your relation Multiple?

This was the thing I struggled with when I created this same type of chat, admittedly I didn’t have time to think about it thoroughly at that time so any ideas would be welcomed. Thank you in advance.

Maybe an if/then column that checks if user1=me, then user2 image else user1 image.

Thanks Jeff, but what I am thinking now is that If > Then column will be static and does not change based on which user is logged in. Maybe I’m missing something here and will need to try that again when I have time.

In a private chat, only 2 people are in the array user columns. I’m thinking that if you compare each the user1 column to the user profile user, it should dynamically work based on who is logged in. And since the user should only see chats that pertain to them, it should work.

1 Like

I think this may be the path forward. I attempted something like this, and wasn’t quiiite able to nail down the logic. Maybe with fresh eyes, tomorrow.

On “is the relation Multiple?” - Not sure I follow, Jeff.
I have a User 1 Relation and a User 2 Relation, and it seems I have both of those set to match multiple…