While getting the chat of a specific group/user how to differenciate the Messages i.e sender or reciever?
sahu-gaurav opened this issue · 1 comments
sahu-gaurav commented
While getting the chat of a specific group/user how to differenciate the Messages i.e sender or reciever?
rxmoein commented
There is a function on Tinode instance called isMe
. Use that function to see if the message is sent by you.
DataMessage
object has a from
field that contains sender's user id.