Skip to content

Commit

Permalink
Fix first event being missed in HomeWidgetBackgroundWorker (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchudy committed Dec 17, 2023
1 parent 3a1976c commit 867c435
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ios/Classes/HomeWidgetBackgroundWorker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public struct HomeWidgetBackgroundWorker {
static public func run(url: URL?, appGroup: String) async {
if isSetupCompleted {
let preferences = UserDefaults.init(suiteName: appGroup)

let dispatcher = preferences?.object(forKey: dispatcherKey) as! Int64
NSLog("Dispatcher: \(dispatcher)")
queue.append((url, appGroup))
} else {

await sendEvent(url: url, appGroup: appGroup)
} else {
queue.append((url, appGroup))
}
}

Expand Down

0 comments on commit 867c435

Please sign in to comment.