Skip to content
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

Fix not showing the correct api access method in use on app reinstall #6004

Conversation

rablador
Copy link
Contributor

@rablador rablador commented Mar 21, 2024

When "Direct" is disabled and "Mullvad bridges" is in use, if app is then removed and reinstalled, "Direct" is enabled again (correct) and "Mullvad bridges" in use (wrong, should be "Direct").


This change is Reviewable

@rablador rablador added bug iOS Issues related to iOS labels Mar 21, 2024
@rablador rablador requested review from buggmagnet and mojganii March 21, 2024 14:17
Copy link

linear bot commented Mar 21, 2024

Copy link
Contributor

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rablador)


ios/MullvadREST/Transport/AccessMethodIterator.swift line 41 at r1 (raw file):

    private func refreshCacheIfNeeded() {
        // Validating the index of `lastReachableApiAccessCache` after any changes in `AccessMethodRepository`
        if let firstIndex = enabledConfigurations.firstIndex(where: { $0.id == self.lastReachableApiAccessId }) {

nit
we can remove self here

@rablador rablador force-pushed the api-access-method-does-not-show-show-the-correct-method-ios-563 branch from ba00af7 to 8addddb Compare March 21, 2024 14:59
Copy link
Contributor Author

@rablador rablador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @buggmagnet)


ios/MullvadREST/Transport/AccessMethodIterator.swift line 41 at r1 (raw file):

Previously, buggmagnet wrote…

nit
we can remove self here

Done

Copy link
Contributor

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@buggmagnet buggmagnet force-pushed the api-access-method-does-not-show-show-the-correct-method-ios-563 branch from 8addddb to bfb83c2 Compare March 22, 2024 07:23
@buggmagnet buggmagnet merged commit baf5414 into main Mar 22, 2024
7 checks passed
@buggmagnet buggmagnet deleted the api-access-method-does-not-show-show-the-correct-method-ios-563 branch March 22, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug iOS Issues related to iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants