-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth : fix restore session when there is no network. #3109
Conversation
@@ -48,7 +47,7 @@ class RustMatrixClientFactory @Inject constructor( | |||
) { | |||
suspend fun create(sessionData: SessionData): RustMatrixClient = withContext(coroutineDispatchers.io) { | |||
val client = getBaseClientBuilder(sessionData.sessionPath, sessionData.passphrase) | |||
.serverNameOrHomeserverUrl(sessionData.homeserverUrl) | |||
.homeserverUrl(sessionData.homeserverUrl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the fix
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3109 +/- ##
========================================
Coverage 75.96% 75.96%
========================================
Files 1636 1636
Lines 38617 38617
Branches 7463 7463
========================================
Hits 29335 29335
Misses 5393 5393
Partials 3889 3889 ☔ View full report in Codecov by Sentry. |
Type of change
Content
When app is launched in airplane mode, the user is presented with login screen.
Using
ClientBuilder.serverNameOrhomeserverUrl
is launching some network requests, which failed.Also made some changes so we don't configure slidingSyncProxy when restoring a session.
Motivation and context
Screenshots / GIFs
Tests
Tested devices
Checklist