# Private chat & signed-in user

**URL:** <https://community.glideapps.com/t/private-chat-signed-in-user/38281>\
**Category:** Ask for Help\
**Created:** [February 9, 2022, 12:53am UTC](https://community.glideapps.com/t/private-chat-signed-in-user/38281 "2022-02-09T00:53:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![masayuki\_tokuda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/masayuki_tokuda/32/36932_2.png) [@masayuki\_tokuda](https://community.glideapps.com/u/masayuki_tokuda)\
**Post date:** [February 9, 2022, 12:53am UTC](https://community.glideapps.com/t/private-chat-signed-in-user/38281/1 "2022-02-09T00:53:45Z")

</div>

I am trying to enhance my app for the private chat function and I found a similar example in the web. ([How to build private chat on Glide](https://www.nocodenoprob.com/post/how-to-build-private-chat-on-glide)) I tried to implement it in the similar way. Although it worked, I am not sure why it works in the way it worked. It checked who are signed in and the flag (true/false) is automatically judged based on the users are signed in or not. However, it seems that the flag got a different data in each user. One has true and another has false at the same time.  
Does the glide allocate a column for each user so that each user can have different value for the column in the same spreadsheet? Also does the signed-in user validation differs by each user. For example UserA is signed in and the column is recognized as UserA is signed in if it looked from UserA. On the other hand from UserB, UserA is not a signed-in user even though UserA is signed in at that time. Is there such possibility?

Can anyone hlep me on this please?

BR,  
T

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 9, 2022, 4:19am UTC](https://community.glideapps.com/t/private-chat-signed-in-user/38281/2 "2022-02-09T04:19:19Z")

</div>

I think you might be looking for User Specific Columns

> **[User-specific columns](https://docs.glideapps.com/all/product/data-editor/user-specific-columns)**

---

<div class="post-metadata">

**Author:** ![masayuki\_tokuda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/masayuki_tokuda/32/36932_2.png) [@masayuki\_tokuda](https://community.glideapps.com/u/masayuki_tokuda)\
**Post date:** [February 9, 2022, 4:54am UTC](https://community.glideapps.com/t/private-chat-signed-in-user/38281/3 "2022-02-09T04:54:52Z")

</div>

Darren,

Thx for very useful information.  
Having said that, the specific column I am referring is not Text, but “If-Then-Else” column type and there is no “Column is user-specific” in the configuration screen. It check if the user in a different column is signed-in or not.

Does it mean “If-then-else” column type is always “user-specific”?

If you can still help me it is great.

BR,  
T

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 9, 2022, 4:56am UTC](https://community.glideapps.com/t/private-chat-signed-in-user/38281/4 "2022-02-09T04:56:38Z")

</div>

> [@masayuki\_tokuda](#):
>
> Does it mean “If-then-else” column type is always “user-specific”?

It depends.  
If an if-then-else column references a user specific column, then yes it will be user specific.

---

<div class="post-metadata">

**Author:** ![masayuki\_tokuda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/masayuki_tokuda/32/36932_2.png) [@masayuki\_tokuda](https://community.glideapps.com/u/masayuki_tokuda)\
**Post date:** [February 9, 2022, 5:11am UTC](https://community.glideapps.com/t/private-chat-signed-in-user/38281/5 "2022-02-09T05:11:08Z")

</div>

Thx. Unfortunately none of them is “user-specific column”.

My question is

- there is two columns. One contains the email of sender of chat. The other has the email of receiver.
- there is another column (let’s say ColumnX) which checks these users are signed-in user or not using If-Then-Else column type with “is signed-in user” condition.

for example the value the row in sender is User-1 and the receiver is User-2. There is another user User-3. When three of them are signed in. if I look the sheet as User-1, then the ColumnX is true which is correct. However if I check as User-3, the ColumnX is false although User-1 is actually signed in by a different device.

Do you know why it is like this?

BR,  
Tokuda

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 9, 2022, 5:22am UTC](https://community.glideapps.com/t/private-chat-signed-in-user/38281/6 "2022-02-09T05:22:14Z")

</div>

I think I understand.

When you are viewing the app as User 3, then User 3 becomes the “signed-in” user.  
If the if-then-else column is comparing the “signed-in user” to each of your sender and receiver columns (user 1 and user 2), then it should return only return true if you are viewing as either of those 2 users. But as you are viewing as User 3, there is no match and so it returns false.

Does that make sense?

---

<div class="post-metadata">

**Author:** ![masayuki\_tokuda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/masayuki_tokuda/32/36932_2.png) [@masayuki\_tokuda](https://community.glideapps.com/u/masayuki_tokuda)\
**Post date:** [February 9, 2022, 5:29am UTC](https://community.glideapps.com/t/private-chat-signed-in-user/38281/7 "2022-02-09T05:29:32Z")

</div>

Yes, it answered my question. Thx.  
It seems that if any column that uses signed-in user condition is a user-specific column based on your explanation. Is my understanding correct?  
BR,  
Tokuda

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 9, 2022, 5:32am UTC](https://community.glideapps.com/t/private-chat-signed-in-user/38281/8 "2022-02-09T05:32:02Z")

</div>

> [@masayuki\_tokuda](#):
>
> It seems that if any column that uses signed-in user condition is a user-specific column based on your explanation.

mm, yes, I suppose so. Although I’d never really thought of it that way 🙂

---

<div class="post-metadata">

**Author:** ![masayuki\_tokuda](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/masayuki_tokuda/32/36932_2.png) [@masayuki\_tokuda](https://community.glideapps.com/u/masayuki_tokuda)\
**Post date:** [February 9, 2022, 5:32am UTC](https://community.glideapps.com/t/private-chat-signed-in-user/38281/9 "2022-02-09T05:32:48Z")

</div>

Thx a lot! it was very helpful. Many many thx!!
