# כפתור צ'אט בעמוד הפרופיל

**URL:** https://meta.discourse.org/t/chat-button-on-profile-page/298816
**Category:** UX
**Tags:** chat, completed
**Created:** [11 במרץ,‏ 2024,‏ 5:09am UTC](https://meta.discourse.org/t/chat-button-on-profile-page/298816 "2024-03-11T05:09:47Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ranjeet](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@ranjeet](https://meta.discourse.org/u/ranjeet)
#### Post date: [11 במרץ,‏ 2024,‏ 5:09am UTC](https://meta.discourse.org/t/chat-button-on-profile-page/298816/1 "2024-03-11T05:09:47Z")

</div>

can we add chat button on the profile page?

---

<div class="post-metadata">

### Author: ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)
#### Post date: [11 במרץ,‏ 2024,‏ 2:34pm UTC](https://meta.discourse.org/t/chat-button-on-profile-page/298816/4 "2024-03-11T14:34:08Z")

</div>

I see now:

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/a/6/da6a5e1702765bcf108135d79941dd2a22ff1ec5.png)

Perhaps it can be useful it one wants to start a chat from the profile page.

Users can also click chat on the usercard as an alternative:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/6/6/e66edec85eafcb227dd11b27c3da41a421bdba55.png)

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [11 במרץ,‏ 2024,‏ 3:18pm UTC](https://meta.discourse.org/t/chat-button-on-profile-page/298816/7 "2024-03-11T15:18:13Z")

</div>

Here is a theme component for that. 👍

[https://github.com/Arkshine/discourse-chat-button-in-profile](https://github.com/Arkshine/discourse-chat-button-in-profile)

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/8/3/b83a1fb192f57b3e581ea9141a8eeb3ff7c9c596.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/d/8/2d8c65971df85415e288f7b312009a9f86ebf94c.png)

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [18 במרץ,‏ 2024,‏ 4:43am UTC](https://meta.discourse.org/t/chat-button-on-profile-page/298816/12 "2024-03-18T04:43:06Z")

</div>

Thank you for reporting this, I agree that the chat button should be included on the user profile. It also feels like it should be there by default.

I think @Arkshine did a great job on working up a solution for this 🚀

We had a quick discussion internally and decided to include this as part of core/chat, since it’s an expected feature and we also have it for the user card already.

I went ahead and added it with this commit:  
[https://github.com/discourse/discourse/commit/d5b944f1def75281b9845babf70e545d7552a95f](https://github.com/discourse/discourse/commit/d5b944f1def75281b9845babf70e545d7552a95f)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [18 במרץ,‏ 2024,‏ 5:43am UTC](https://meta.discourse.org/t/chat-button-on-profile-page/298816/13 "2024-03-18T05:43:46Z")

</div>

Maybe the button should be hidden on the profiles of users who have opted out of receiving chat messages, similar to the implementation of the personal message button.

 ![_20240318_063843](https://global.discourse-cdn.com/meta/original/4X/c/7/d/c7d9579fe0b7f1e4b186104b28c1b0a57ffd3a8c.jpeg)

And is the smaller button on the usercard related to that change too?

 ![Screenshot_20240318_064610_Chrome](https://global.discourse-cdn.com/meta/original/4X/3/4/9/34998e561e69aaa5c001717267b215eaccddb087.jpeg)

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [18 במרץ,‏ 2024,‏ 7:09am UTC](https://meta.discourse.org/t/chat-button-on-profile-page/298816/14 "2024-03-18T07:09:07Z")

</div>

> [@Moin](#):
>
> Maybe the button should be hidden on the profiles of users who have opted out of receiving chat messages, similar to the implementation of the personal message button.

That’s a fair point, thank you for highlighting. I will have a look into this.

> [@Moin](#):
>
> And is the smaller button on the usercard related to that change too?

This style change is related to the user-card theme, I’ve opened a PR on the theme with a fix for this, which should hopefully get merged soon.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [19 במרץ,‏ 2024,‏ 8:00am UTC](https://meta.discourse.org/t/chat-button-on-profile-page/298816/15 "2024-03-19T08:00:43Z")

</div>

> [@davidb](#):
>
> I’ve opened a PR on the theme with a fix for this, which should hopefully get merged soon.

I think it is merged, but the button is still smaller

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [25 במרץ,‏ 2024,‏ 5:28am UTC](https://meta.discourse.org/t/chat-button-on-profile-page/298816/16 "2024-03-25T05:28:43Z")

</div>

I’ve made a follow up to fix the issues experienced with the button appearing despite opting out of chat. The opposite scenario was also true (chat enabled but target user disabled chat). Both scenarios should now be fixed with this change:

[https://github.com/discourse/discourse/pull/26237](https://github.com/discourse/discourse/pull/26237)

The issue of the CSS still not updating for the button is a meta specific issue, we are using an older version of the user card theme component at the moment so the style changes aren’t reflected, but I will follow up on that and have it corrected soon.
