Chat button on profile page

can we add chat button on the profile page?

3 Likes

I see now:

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

3 Likes

Here is a theme component for that. :+1:

8 Likes

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 :rocket:

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:

4 Likes

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.

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

3 Likes

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

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.

3 Likes

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

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:

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.

3 Likes