Avatar

Correct answer by
Level 10

Hi,

You can get the userDesciptor of the user you clicked from event.currentTarget since you gave the userCollection as the dataProvider to the list.

Once you have userDescriptor and hence the userID of the recipient, you send a message item. You can use SharedProperty to send a message to the user.

Since it’s a private message, you can also use recipientID to only send message to that user. User should listen to the itemReceive and on reciving the message, should create a chat in a way I specified in a previous message.

Please go into Asdocs and read more about publishing messages , sharedproperty etc and also see examples for getting this to work.

Thanks

Hironmay Basu

View solution in original post