tchapgouv / tchap-android

A matrix client for Android.
https://play.google.com/store/apps/details?id=fr.gouv.tchap.a
Apache License 2.0
20 stars 7 forks source link

Fix crypto migration for mono session #979

Closed yostyle closed 12 months ago

yostyle commented 12 months ago

Type of change

Content

An issue could occurs when decrypting message if keys are not found with other sessions which can happen for users who have only one session. We try to perform a lazy migration from the legacy store if there is no other session.

Motivation and context

Users that have only one session could have an issue when decrypting message since the Rust migration.

Screenshots / GIFs

Tests

Tested devices

Checklist

tchap-danger-bot[bot] commented 12 months ago
Warnings
:warning: Please add a changelog. See instructions [here](https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md#changelog)

Generated by :no_entry_sign: dangerJS against 3c2a9d30855e250b37956003bd50b746b2221bf5

mcalinghee commented 12 months ago

Communication :

27k utilisateurs ont installé cette version 2.9.3. 70% d'user mono mobile : https://stats.tchap.incubateur.net/question/82-repartition-mobile-et-web-dernier-mois 2.9.3 = 27k personnes le risque : quelqu'un en 2.9.3 qui vide son cache perd tous ses messages

Communiquer ? : "la 2.9.3 présente une instabilité sur Android. Ne pas vider le cache sous peine d'empirer la situation."

cc @odelcroi @yostyle @NicolasBuquet