element-x-ios icon indicating copy to clipboard operation
element-x-ios copied to clipboard

Messages taking ~10s to show up *after* the sync spinner goes away

Open ara4n opened this issue 1 year ago • 4 comments

Steps to reproduce

  1. Receive a push; tap on it
  2. Get taken to room
  3. Sync spinner goes away after a second or so
  4. Wait ~10s for the msg to appear
  5. In this instance, when it finally appears, the rest of the timeline is blanked out. (https://github.com/element-hq/element-x-ios/issues/1675)

Outcome

What did you expect?

fast sync

What happened instead?

regressed slow sync

Your phone model

No response

Operating system version

No response

Application version

488

Homeserver

No response

Will you send logs?

Yes

ara4n avatar Jan 15 '24 08:01 ara4n

@kegsay kindly dug into this and discovered the root cause is that EX is managing to show the timeline without subscribing to it, hence hence the messages not showing up. This feels like a pretty major problem.

ara4n avatar Jan 16 '24 16:01 ara4n

this is still happening badly on 493 - just had a ~60s delay

ara4n avatar Jan 20 '24 15:01 ara4n

https://github.com/element-hq/element-x-ios/pull/2351 should have fixed this but looks like it didn't

ara4n avatar Jan 20 '24 16:01 ara4n

Presumably the same as No spinner while catching up on to-device msgs #1269

The sync indicator/spinner displayed on the app right now is provided by the RoomListService API. If you want another sync indicator/spinner for to-device events, it must be provided by the EncryptionSync API. It's really not complex to implement in the SDK, but it needs product and design decisions before that.

stefanceriu avatar Jun 21 '24 06:06 stefanceriu