tinode / dart-sdk

Dart SKD for using Tinode messenger in dart and flutter applications.
https://pub.dev/packages/tinode
Apache License 2.0
41 stars 20 forks source link

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

Closed sahu-gaurav closed 3 years ago

rxmoein commented 3 years ago

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.