[BUG] New messages are not loaded properly
- Your Rocket.Chat app version: 3.4.1
- Your Rocket.Chat server version: 1.0.2 (Also tested with previous versions)
- Where is Rocket.Chat server running? Kubernetes with 3 replicas
- Device (or Simulator) you're running with: IPhone 8/Iphone 8 Plus
Description We always have messages missing on the Rocket.Chat IOS App when opening the App after it was closed or after push notifications. For better understanding of the problem we added the Screencast below. This is neither happening on the Desktop Client nor on the Android App.
Screencast

How to reproduce the problem?
- Close your IOS Rocket.Chat App
- Let someone else send you messages
- Open your IOS Rocket.Chat App
- Open the conversation
- Now you see none of the new messages or just a part of the new messages
- Step out of the conversation
- Open the conversation again
- Now you are able to see all new messages
We've got many IOS devices and therefore also have a lot of complaints about this issue by our users. It's kind of a showstopper for us. :-(
I'm not sure if it's related to that issue here https://github.com/RocketChat/Rocket.Chat.iOS/issues/2472
We would be very pleased if you could help us fixing this issue.
Seems to be slightly better with 3.5.0 but still affects our users. Is no one out there who faced the same or a similar issue?
Hey Guys,
Is there any update on this issue? Facing the same problem in our environment.
Please let us know if there is any fix.
We are on 1.0.3 now and the issue still exist.
I suspect that the following code in MessagesViewController.swift will overwrite newly fetched messages while the view is being updated.
viewModel.data = newData
Seeing similar behavior with app 3.5.2 and server 2.1.1. With iOS app open, push notifications come in, but new messages do not appear in conversation until you leave conversation and reenter.
The mobile apps are moving to React Native.
Please read the following links.
https://github.com/RocketChat/Rocket.Chat.Android#legacy-rocketchat-android-native-application
https://rocket.chat/2019/10/11/moving-mobile-apps-to-react/
Any issues here are now unlikely to get fixed.
You should test the Experimental RN app on iOS and look in the React Native repo
https://github.com/RocketChat/Rocket.Chat.ReactNative