Message text click

Hi guys,

I am adding message to my app using V1. How I can get a click on the message text? I know the V2 have this option, but I don’t find anything for the v1.

Thanks.

$('.message').on('click', ...), no?

This code works for old messages. But it dosen’t work for new message that just created. Old messages that is created by html structure have “.message” class, but new message that is created by addMessage method don’t have “message” class. So new messages don’t respond when click on them. How can I handle click event for new mesasges?

messages.addMessage({
text: message_text,
name: message_name,
avatar: message_avatar
});