Skip to content

Commit

Permalink
fixup! TF-3275 Fix FCM iOS foreground desync
Browse files Browse the repository at this point in the history
  • Loading branch information
tddang-linagora committed Dec 5, 2024
1 parent e5bef5c commit 8714eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/TwakeMailNSE/NotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class NotificationService: UNNotificationServiceExtension {
let appGroupId = (Bundle.main.object(forInfoDictionaryKey: "AppGroupId") as? String) ?? "group.\(Bundle.main.bundleIdentifier!)"
let userDefaults = UserDefaults(suiteName: appGroupId)
let isAppActive = userDefaults?.value(forKey: CoreUtils.APPLICATION_STATE) as? Bool
if let appIsActive = isAppActive, appIsActive {
if isAppActive == true {
self.modifiedContent?.userInfo = request.content.userInfo.merging(["data": request.content.userInfo], uniquingKeysWith: {(_, new) in new})
contentHandler(self.modifiedContent ?? request.content)
}
Expand Down

0 comments on commit 8714eee

Please sign in to comment.