element-hq / element-hq/element-web

Key Backup not restored automatically after verification

Open
#27,009 4 comments 2 reactions 0 assignees View on GitHub
A-Element-R O-Occasional S-Major T-Defect Z-Labs
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Have properly verified and backed up session
![image](https://github.com/element-hq/element-web/assets/20560137/070fb440-29b7-42a8-8a39-3a49daa6cb17)
3. Log out
4. Log in
5. Click verify with other device
![image](https://github.com/element-hq/element-web/assets/20560137/91f1a59e-6606-4474-b055-775600169604)
6. change language
7. Open encrypted chats, see `Unable to decrypt message`
8. wait 5 Minutes, see nothing changed
9. Click restore from Backup
10. Type security key, click Continue
11. See keys being restored, see readable messages
12. After restoring keys: dialogue:
![image](https://github.com/element-hq/element-web/assets/20560137/38b351db-89e4-4e17-b228-e699952dc54b)
13. Click cancel,
14. Click restore from Backup, see keys being restored without security key request
15. arrive at step 1

### Outcome

#### What did you expect?
.6. all my messages decrypted, or being decrypted
.9. no request for security key
.11. see success dialogue

#### What happened instead?

.6. messages not decryptable
.9. security key was requested, despite verification
.11. see request for security key again

### Operating system

Windows 10

### Application version

Element version: 1.11.58 Crypto version: Rust SDK 0.7.0 (691ec63), Vodozemac 0.5.0

### How did you install the app?

https://element.io/get-started

### Homeserver

matrix.org

### Will you send logs?

Yes

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.