element-hq / element-hq/element-android

Message keys not migrated from legacy to Rust store are not backed up

Open
#8,858 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

1. Install Element Android 1.5.32 or older (any other version without crypto rust)
2. Send some events in rooms to have a significant history. Do not set up key backup at this point.
3. Upgrade to more recent version of Element Android
4. Configure key backup
5. Start a new session on a new client
6. Note that keys that could be decrypted on EA are not decryptable on the new session

The problem is that keys that were in the legacy/Realm DB are not actively migrated to the Rust DB (they are copied lazily when the client needs them). So then, when backup is set up on the Rust client, those keys are not backed up, and the new session cannot access them.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.