element-hq / element-hq/element-ios

Retry initial sync logic shouldn't wait 10s before retrying

Open
#2,021 0 comments 0 reactions 0 assignees View on GitHub
P2 T-Enhancement
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

https://github.com/matrix-org/matrix-ios-kit/blob/develop/MatrixKit/Models/Account/MXKAccount.m#L1340-L1345 looks like we randomly wait 10s before trying to retry. Given the likely reason /sync failed is because it timed out, we should retry immediately (or perhaps only wait 10s if it failed quickly)

Contributor guide

Open the contributing guide

Research direction

Read MatrixKit/Models/Account/MXKAccount.m around lines 1340-1345 and trace the initial /sync retry path. Confirm how failures are classified, then determine the retry timing that avoids an unnecessary 10-second delay, including whether quick failures should retain a delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c
Domain
mobile, networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.