[In-App Chat Web] How to add the username or name on the top of user's message bubble?

[In-App Chat Web] How to add the username or name on the top of user's message bubble?

  
Forge Component
(4)
Published on 2017-11-23 by Labs
4 votes
Published on 2017-11-23 by Labs

Hello can you help me? i've tried adding text to the label, but it doesn't show.

Solution

Hi Alfred

<Batman joke goes here>


The component does that for you, as long as there are more than two people in the same conversation.

Your messages appear on the right side, and since you know who you are (hopefully), your name doesn't appear, but the other conversation members are identified.

Check the example below:


You can use the sample application to test this scenario.

While in a "Private" conversation the names don't appear, since you're talking with just one person (and can identify that person in the screen title - for example)


I hope this answers your question.

Cheers,


Rui Mendes

Solution