matrix-org/matrix-ios-sdk

Session start error after deleting an application

imperiacorp opened this issue · 0 comments

Steps to reproduce:

  1. Log in using this method: Screenshot 2024-02-08 at 09 16 45
  2. Use this method from GitHub matrix-its-sdk repo to start session Screenshot 2024-02-08 at 09 12 42
  3. Delete application without logout.
  4. Install app again and log in using method in point 1.
  5. Stop the app and run it again.

Error log:
🚨 [MXCryptoV2] start(_:failure:): Failed starting crypto module Error Domain=org.matrix.sdk Code=6 "One time key signed_curve25519:AAAAAAAAACE already exists. Old key: {"key":"........","signatures":{"@tst106:.dev.010.xyz":{"ed25519:OSZ...JV":"7vC4vDkkn6Pe2n+dwHEvQpbP....SOq96TKvtf3Q8xYc2oUBaJrpHOhQVtE2EjXsDKhAA"}}}; new key: {'key': 'Fpm/AqbQjx8N5vEOLMvIOle/4H8gSZHCvtznsZ5S7V8', 'signatures': {'@tst106:.dev.010.xyz': {'ed25519:NDWHECZTYA': '/w44Sip264to9pUtnOmDk....49oDwwCHorZ3kM40A+/caEVo8zR6O+DvA9R.....KF1DQkv+3Cw'}}}" UserInfo=UserInfo={errcode=M_UNKNOWN, httpResponse=<NSHTTPURLResponse: 0x600000238f00> { URL: https://devm.101011010.xyz/_matrix/client/r0/keys/upload } { Status Code: 400, Headers {}}

Sometimes SDK even crashes