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
Apache License 2.0
392 stars 86 forks source link

Recent history doesn't decrypt on login #3045

Closed ara4n closed 1 month ago

ara4n commented 1 month ago

Steps to reproduce

  1. Login to an OIDC account (don't use QR login)
  2. Verify the login from EW to get E2EE working
  3. Open an E2EE room and discover it full of UTDs for the recent history it's synced
  4. Scroll back a few pages and discover that history then starts working.
  5. Later on, roughly 10 minutes later, notice that the recent history is now decrypted too.

Outcome

What did you expect?

Recent history is decryptable as soon as you've verified your new login.

What happened instead?

It feels like the SDK is caching the fact that it couldn't decrypt the history after the initial sync, and not retrying to decrypt once E2EE is verified.

Your phone model

iPhone 12 Pro Max

Operating system version

No response

Application version

1.6.13

Homeserver

element.io

Will you send logs?

Yes

ara4n commented 1 month ago

should this be S-Major, given how problematic floods of UTDs are?

richvdh commented 1 month ago

Let's close this in favour of #3055, which seems to be the same thing but slightly better described.