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(AccountManager): Use SendableProperty for currentAccount #1444

Merged
merged 1 commit into from
Jun 4, 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
2 changes: 1 addition & 1 deletion MailCore/Cache/AccountManager/AccountManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public final class AccountManager: RefreshTokenDelegate, ObservableObject {
public static let appGroup = "group." + group
public static let accessGroup: String = AccountManager.appIdentifierPrefix + AccountManager.group

private var currentAccount: Account?
@SendableProperty private var currentAccount: Account?

public var currentUserId: Int {
didSet {
Expand Down
6 changes: 3 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Infomaniak/ios-core",
"state" : {
"revision" : "4e168afcd6bc05bfa3cd96bd8f7889f920bab788"
"revision" : "ddb10ba05f8bb7686696adb4a226fbba47a4f86b"
}
},
{
Expand Down Expand Up @@ -157,8 +157,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/kean/Nuke",
"state" : {
"revision" : "7395c7a9dcd390bbcfad17a731d8d529602702c6",
"version" : "12.7.0"
"revision" : "2efd206503e99dd3a88a4dc433a76f98ce8cc198",
"version" : "12.7.1"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let package = Package(
.package(url: "https://github.com/Infomaniak/ios-login", .upToNextMajor(from: "6.0.0")),
.package(url: "https://github.com/Infomaniak/ios-dependency-injection", .upToNextMajor(from: "2.0.0")),
.package(url: "https://github.com/Infomaniak/swift-concurrency", .upToNextMajor(from: "0.0.5")),
.package(url: "https://github.com/Infomaniak/ios-core", revision: "4e168afcd6bc05bfa3cd96bd8f7889f920bab788"),
.package(url: "https://github.com/Infomaniak/ios-core", revision: "ddb10ba05f8bb7686696adb4a226fbba47a4f86b"),
.package(url: "https://github.com/Infomaniak/ios-core-ui", .upToNextMajor(from: "9.0.0")),
.package(url: "https://github.com/Infomaniak/ios-notifications", .upToNextMajor(from: "6.0.0")),
.package(url: "https://github.com/Infomaniak/ios-create-account", .upToNextMajor(from: "8.0.0")),
Expand Down
Loading