tinode/dart-sdk

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

While getting the chat of a specific group/user how to differenciate the Messages i.e sender or reciever?

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.