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

Room previews are often stale

Open ara4n opened this issue 2 years ago • 3 comments

Steps to reproduce

  1. View room list
  2. Go into room
  3. Send some messages
  4. Wait for them to echo
  5. Go back to room list
  6. Room list preview shows the message from before you entered the room (possibly the room cached version). It slowly updates after a second or so to show the right preview. It can switch back and forth between the right and wrong preview as it does so.

Outcome

What did you expect?

reliable room previews

What happened instead?

stale previews and flakiness feeling

Your phone model

No response

Operating system version

No response

Application version

391

Homeserver

No response

Will you send logs?

No

ara4n avatar Sep 21 '23 00:09 ara4n

or at the least it lags the traffic of the msgs you’ve sent by several seconds

ara4n avatar Sep 21 '23 00:09 ara4n

Just caught this in the act. The Dendrite room preview is showing entirely wrong preview from ages ago (perhaps from a previous stale cache when I last launched the app?)

neither allrooms or visiblerooms list appears to have updated the preview correctly. however, the room order is right, as can be confirmed by opening the room and pulling in timeline, which then fixes the preview

image

ara4n avatar Sep 22 '23 23:09 ara4n

Local echo support in the room preview should fix it. We need to test local echoes on Android. We may then review the complexity if other problems are found.

manuroe avatar Jul 04 '24 12:07 manuroe