Chat Support not showing 2 users messages

Hi Everyone,

I’m trying to put a chat support on this app but I’m not sure how to proceed. What I’m trying to do is a “Guest user” can chat to “Customer Agent” for inquiries but how can I make it that they can exchange messages and both messages will be displayed in the list viewer?

I’m using Firebase as my database