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

KM-4856: Fix DIP on tvOS due to Accounts migrations #164

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions PIA VPN-tvOS/Bootstraper/BootstraperFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class BootstraperFactory {

private static func loadDataBase() {
Client.database = Client.Database(group: AppConstants.appGroup)
Client.providers.serverProvider = ServerProviderFactory.makeDefaultServerProvider()
}

private static func setupPreferences() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class DedicatedIPViewModel: ObservableObject {
guard let server = getDedicatedIp(),
let dipIKEv2IP = server.dipIKEv2IP,
let dipStatusString = server.dipStatusString else {
dedicatedIPStats = []
Task { @MainActor in
dedicatedIPStats = []
}
return
}
Task { @MainActor in
Expand All @@ -55,8 +57,8 @@ class DedicatedIPViewModel: ObservableObject {

do {
try await activateDIPToken(token: token)
onAppear()
Task { @MainActor in
onAppear()
showActivatedDialog = true
}
} catch {
Expand Down
2 changes: 1 addition & 1 deletion PIA VPN.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7771,7 +7771,7 @@
repositoryURL = "https://github.com/pia-foss/mobile-ios-library.git";
requirement = {
kind = revision;
revision = e864a59d6d1aa2d820016dcac074bfc070a89aca;
revision = 40c1afb5f143bd061e322093a6d11e798739c10c;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
Loading