element-hq / element-hq/element-ios

Newly created Secure Backup Key refused by Element iOS

Open
#7,737 3 comments 1 reaction 0 assignees View on GitHub
T-Defect
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Element iOS launched on device, Element web launched in browser on same account as Element iOS
2. Regenerate a Secure Backup key on Element web
3. Eventually disconnect Element iOS from internet during 1 minute during step 2
4. on Element iOS, try to recover message from secure backup using the newly generated Secure Backup key from web session
5.

### Outcome

#### What did you expect?
I expected the Element iOS app to accept the new Secure backup key and restore the messages.

#### What happened instead?
The Secure Backup key is refused by Element iOS although it is the active Secure Backup code on the account.

#### Video showing the bug
https://github.com/element-hq/element-ios/assets/18608158/dc7cbf12-e35d-4896-ac1b-cf4eeccf5da5

### Your phone model

iPhone 15 Pro simulator

### Operating system version

iOS 17.0

### Application version

Element iOS 1.11.5

### Homeserver

matrix.org

### Will you send logs?

No

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the Element iOS 1.11.5 scenario with Element web, including the one-minute offline interval, then trace the Secure Backup recovery entry point. Done means the newly generated active key is accepted and messages are restored.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.