This commit is contained in:
Ryan Zhao 2022-03-02 09:42:13 +11:00
parent f632763eee
commit f7bfeb6e6d
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public final class NotificationServiceExtension : UNNotificationServiceExtension
// Handle the push notification
AppReadiness.runNowOrWhenAppDidBecomeReady {
let openGorupPollingPromises = self.pollForOpneGorups()
let openGorupPollingPromises = self.pollForOpenGroups()
defer {
when(resolved: openGorupPollingPromises).done { _ in
self.completeSilenty()
@ -173,7 +173,7 @@ public final class NotificationServiceExtension : UNNotificationServiceExtension
}
// MARK: Poll for open groups
private func pollForOpneGorups() -> [Promise<Void>] {
private func pollForOpenGroups() -> [Promise<Void>] {
var promises: [Promise<Void>] = []
let servers = Set(Storage.shared.getAllV2OpenGroups().values.map { $0.server })
servers.forEach { server in