element-hq / element-x-ios

Next generation Matrix client for iOS built with SwiftUI on top of matrix-rust-sdk.
https://element.io/labs/element-x
GNU Affero General Public License v3.0
428 stars 105 forks source link

Sent a message which vanished on remote echo (jumping up the timeline?) #3214

Open ara4n opened 2 months ago

ara4n commented 2 months ago

Steps to reproduce

  1. Open room
  2. Send first msg
  3. Send second message
  4. See bubble for first msg animate off the top of the page (or some similar timeline spasm).
  5. First msg now appears to have vanished from the visible timeline

missing msg reappears on going to roomlist and back again

This feels very similar to https://github.com/element-hq/element-x-ios/issues/3132 (but happened on sending msg), or https://github.com/element-hq/element-x-ios/issues/3206, or https://github.com/element-hq/element-x-ios/issues/1279.

I’ve had it a few times now, but just rageshaked with timeline trace log level ✨

Outcome

What did you expect?

msgs mot to disappear or jump around the timeline

What happened instead?

flakiness

Your phone model

No response

Operating system version

No response

Application version

691

Homeserver

No response

Will you send logs?

Yes

ara4n commented 2 months ago

theory: the first remote echos got entangled with the /messages or a subscription returning, and so raced and ended up in the wrong place

ara4n commented 2 months ago

I had this yesterday (build 699) - the local (and then remote) echo of the message I sent ended up 4 messages up the timeline. I have no idea why. Unfortunately i didn't have enough bandwidth to rageshake.

cc @bnjbvr for timeline weirdnesses