One to one chat fetching record issues

I am currently working on My team and join team.
I am select one member from the team and chat with that member. but I facing issues when I am fetching messages. in one to one chat it shows by my team messages so
kindly help me with this problem of how to distribute these messages.

Hi @devidas,

Can you please confirm that you are using setUID() not a setGUID() method while fetching a messages for one-to-one.

Please check the below documentation link for reference.