Mark receiveRemoteNotification as MainActor.

This commit is contained in:
Brent Simmons 2024-03-24 23:36:32 -07:00
parent e371d31bd6
commit 64b3fcc2ba

View File

@ -216,7 +216,7 @@ public final class AccountManager: UnreadCountProvider {
accounts.forEach { $0.resume() }
}
public func receiveRemoteNotification(userInfo: [AnyHashable : Any]) async {
@MainActor public func receiveRemoteNotification(userInfo: [AnyHashable : Any]) async {
for account in activeAccounts {
await account.receiveRemoteNotification(userInfo: userInfo)