we are building a chat app and we need help with displaying the messages on the correct side. It is a repeated paragraph with the data from a Firestore database.
We would like to have messages which were sent by the logged-in user (we have the UID of the user as an app variable and each message has the sender’s UID) on the right and messages sent by other users on the left.
Any help will be appreciated.
Thank you in advance.