To many messages

You will never have consistent chat performance until you use some 3rd party services or the Real Time Chat by Pragmaflow, have a look at the sample I built here

The are only 2 small issues, the reversed scrolling and device responsiveness if display are very different (example on iPhone 13 Pro Max is fine, on iPhone 7 you have to scroll down a bit to see the input field)