# Need help on creating private chat

**URL:** https://community.glideapps.com/t/need-help-on-creating-private-chat/10686
**Category:** Ask for Help
**Created:** [June 11, 2020, 7:27pm UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686 "2020-06-11T19:27:18Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Glider](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/glider/32/9699_2.png) [@Glider](https://community.glideapps.com/u/Glider)
#### Post date: [June 19, 2020, 2:30pm UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/23 "2020-06-19T14:30:12Z")

</div>

@Lisa thank you so soon much

---

<div class="post-metadata">

### Author: ![Lisa](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Lisa](https://community.glideapps.com/u/Lisa)
#### Post date: [June 23, 2020, 4:09am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/24 "2020-06-23T04:09:40Z")

</div>

Still getting used to Loom 😁 Hope this helps!

---

<div class="post-metadata">

### Author: ![Glider](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/glider/32/9699_2.png) [@Glider](https://community.glideapps.com/u/Glider)
#### Post date: [June 23, 2020, 10:34am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/25 "2020-06-23T10:34:19Z")

</div>

Thank you sooo much @Lisa

---

<div class="post-metadata">

### Author: ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)
#### Post date: [June 23, 2020, 11:16am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/26 "2020-06-23T11:16:23Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Glider](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/glider/32/9699_2.png) [@Glider](https://community.glideapps.com/u/Glider)
#### Post date: [June 23, 2020, 2:21pm UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/27 "2020-06-23T14:21:13Z")

</div>

It worked and It was very easy

---

<div class="post-metadata">

### Author: ![David\_Fefferman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_fefferman/32/7594_2.png) [@David\_Fefferman](https://community.glideapps.com/u/David_Fefferman)
#### Post date: [June 23, 2020, 5:20pm UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/28 "2020-06-23T17:20:20Z")

</div>

Killer video, Lisa!

---

<div class="post-metadata">

### Author: ![Lisa](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Lisa](https://community.glideapps.com/u/Lisa)
#### Post date: [June 23, 2020, 7:55pm UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/29 "2020-06-23T19:55:42Z")

</div>

Thanks everyone. Glad this helps! 🤟

---

<div class="post-metadata">

### Author: ![Roberto\_Salim](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roberto_salim/32/6861_2.png) [@Roberto\_Salim](https://community.glideapps.com/u/Roberto_Salim)
#### Post date: [June 23, 2020, 8:09pm UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/30 "2020-06-23T20:09:53Z")

</div>

Nice work @Lisa Thanks for sharing.

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [June 23, 2020, 10:56pm UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/31 "2020-06-23T22:56:02Z")

</div>

Perfect @Lisa! Thanks for sharing

---

<div class="post-metadata">

### Author: ![David\_Fefferman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_fefferman/32/7594_2.png) [@David\_Fefferman](https://community.glideapps.com/u/David_Fefferman)
#### Post date: [June 24, 2020, 11:46pm UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/32 "2020-06-24T23:46:23Z")

</div>

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)?

 ![Screen Shot 2020-06-24 at 4.42.00 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/b6266715aa0b03fb23926aca8728966e7d778b94.png)

 ![Screen Shot 2020-06-24 at 4.35.29 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/f/fba000e545d30566fb3a8bfbe03f9475b9214ab1.png)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 25, 2020, 12:24am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/33 "2020-06-25T00:24:50Z")

</div>

Is your relation Multiple?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 25, 2020, 12:26am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/34 "2020-06-25T00:26:31Z")

</div>

> [@David\_Fefferman](#):
>
> 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)?

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.

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 25, 2020, 12:30am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/35 "2020-06-25T00:30:51Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 25, 2020, 12:33am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/36 "2020-06-25T00:33:39Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 25, 2020, 12:37am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/37 "2020-06-25T00:37:47Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![David\_Fefferman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_fefferman/32/7594_2.png) [@David\_Fefferman](https://community.glideapps.com/u/David_Fefferman)
#### Post date: [June 25, 2020, 12:38am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/38 "2020-06-25T00:38:18Z")

</div>

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…

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 25, 2020, 12:39am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/39 "2020-06-25T00:39:53Z")

</div>

If you have the relation set to multiple, then the lookup will try to pull back multiple and you can’t use that value in a single value component. You need to change your relations to single, since I assume you would never have multiple matches anyway.

---

<div class="post-metadata">

### Author: ![David\_Fefferman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_fefferman/32/7594_2.png) [@David\_Fefferman](https://community.glideapps.com/u/David_Fefferman)
#### Post date: [June 25, 2020, 1:09am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/41 "2020-06-25T01:09:58Z")

</div>

Hmm… switching it broke some other functionality. I may have to disassemble things and rebuild to figure out where the issue is coming from.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 25, 2020, 1:12am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/42 "2020-06-25T01:12:47Z")

</div>

May we ask what functionalities are broken by changing it to a single relation? As Jeff said, I assumed you will only need a single relation here.

---

<div class="post-metadata">

### Author: ![Lisa](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Lisa](https://community.glideapps.com/u/Lisa)
#### Post date: [June 25, 2020, 1:15am UTC](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686/43 "2020-06-25T01:15:33Z")

</div>

I used two different inline lists to accomplish users seeing the other users in the chat versus seeing themselves. See screenshots below.

 ![Screenshot 6-24-2020 9-07-39 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/2/26e03b95128375fbe5c951051c8842cfa38d57f5.png)

 ![Screenshot 6-24-2020 9-11-03 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/4/423e855aaa7f93ab5a35554f652cf6e73502f2bc.png)

[Previous page](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686.md?page=1)

[Next page](https://community.glideapps.com/t/need-help-on-creating-private-chat/10686.md?page=3)
