angular-simple-chat icon indicating copy to clipboard operation
angular-simple-chat copied to clipboard

How can I show avatar and names of users on left side for incoming messages?

Open Faizan-Shakeel opened this issue 8 years ago • 4 comments

How can I show the avatar and user name of incoming messages on left side like in the example image?

Faizan-Shakeel avatar Mar 16 '16 02:03 Faizan-Shakeel

Hi, The default configuration should work. Did you have a plunker or jsfiddle link for debugging ? Regards.

vogloblinsky avatar Mar 16 '16 08:03 vogloblinsky

I don't get how can default configuration work, because there is no option to make the difference between incoming and outgoing message. Whether a message is sent to me or I send a message, after all it adds into messages array and there is no flag for telling it to change sides. Please guide me through this since I think that I am missing something very basic here. I will try to make plunker. Thanks for replying

Faizan-Shakeel avatar Mar 16 '16 08:03 Faizan-Shakeel

+1 please. I have the same question

fabsalito avatar Aug 31 '16 19:08 fabsalito

I found the solution. You must pass them as "userName" and "avatar" on left side message.

fabsalito avatar Aug 31 '16 19:08 fabsalito