Echo JS 0.11.0

<~>
NameOfCode 2108 days ago.
At this time I'm here because I want to make an adaptation from this Codepen by Virgil Pana https://codepen.io/virgilpana/pen/ZYZXgP .

As you can see in the snippet, when you select different users, the profile picture changes, but the chat doesn't.

I spent the afternoon trying to figure out how to change the chat text as you select different users, but I'm still having trouble.

I think the problem is related to the $(.friend) or .messages part of the jQuery function.

Thanks in advance!