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
401 stars 88 forks source link

SSS: timeline resets on receiving every message? #3087

Open ara4n opened 1 month ago

ara4n commented 1 month ago

Steps to reproduce

  1. Enable SSS
  2. Send yourself a message
  3. Observe it takes ~30s to arrive
  4. When it does, the timeline resets, leaving partial contents visible afterwards.

Outcome

What did you expect?

Rapid receipt, and no weird timeline resets

Your phone model

No response

Operating system version

No response

Application version

662

Homeserver

No response

Will you send logs?

Yes

ara4n commented 1 month ago

have split bullet 3 into https://github.com/element-hq/element-x-ios/issues/3092

ara4n commented 1 month ago

this also happens whenever you send

ara4n commented 1 month ago

this looks to be much improved now. although i wonder if there are still scenarios where it happens, if not on every msg

manuroe commented 1 month ago

can it be related to crypto device issues? Not that enabling SSS forces a logout, we should not have this issue anymore.

Hywan commented 1 month ago

cc https://github.com/matrix-org/matrix-rust-sdk/issues/3647

ara4n commented 1 month ago

erik says this will happen when the server restarts, but the code doesn't exist in synapse yet to expire sessions after N minutes or X backlogged events. so it should still be very rare. @hywan sees it more often though.