Chat Application to Show received message on Left side
Question
Application Type
Mobile

Hi ,

I am using chat widget in my application for chatting purpose. when I send and receive message it always show on right side how do I do it. Below are my entity structure

UserMessage Entity
Id
ReciverUserID
SenderUserID
MessageContent
SendTime

Their is one property Display on right but how can I use it for separation Sender and Receiver. 

Thanks in advance .

Regards

Piya

Solution

Hi @Piya Singh ,

You can use condition here like-

when you fetch data from aggregate.

aggegatename.list.current.UserMessage.SenderId=GetUserId()

then it will separate Sender and Receiver message. Please apply it and let us know.


Hope this will help you.


Thank You @Deepa Tiwari  its working as expected .

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.