Offline mode resets channels list
What did you do?
In my app user has over 100 channels with a single user. I'm using the default UI from StreamChatUI. Channels list is paginated. I scroll down to the bottom to see f.e. 80th channel. I encountered two issues:
- When the internet connection is lost and then is reconnected again, then I try to load more pages, the channel list scrolls up, and I see only the first channels page (20 channels). ~~2. When I open the 80th channel details screen, turn on and off flight mode, and try to send a new message the red indicator shows up. I long press the message and press "Try again" without success.~~
What did you expect to happen?
- The channels list shouldn't scroll up and user should be able to see the 80th channel. ~~2. User should be able to send a message when connection is regained.~~
What happened instead?
- Channels list scrolls up, only first 20 channels are visible. ~~2. The message cannot be sent.~~
GetStream Environment
GetStream Chat version: 4.15.0 GetStream Chat frameworks: StreamChat, StreamChatUI iOS version: 15.4.1 Swift version: 5 Xcode version: 13.3.1 Device: iPhone 11 Pro
HI @pelczark,
Thank you for opening this ticket.
The first issue is known, and it is currently not a priority. We'll let you know when this changes.
The second one is unknown, and should not happen. Let me come back to you after I investigate it. Is there any particular thing you are doing to reproduce it?
Hi @pelczark,
After a first investigation of 2. with the details you provided, I wasn't able to reproduce the issue you mention. I was able to properly resend the message after turning airplane mode off, regaining connection and long-pressing the failed message to resend it.
Is it possible for you to send a video reproducing the issue? Have you tried to reproduce the issue in our DemoApp? Is there any customization you are adding around ChatChannel?
Hi @polqf @hugobernalstream . I retested 2 using the newest library and it is working. Apologies, It didn't work in the older version.
That's great to hear! We'll keep you posted on 1 as it is not in our roadmap now