File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Sources/Core/Notifications Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -173,9 +173,10 @@ extension Notifications: UNUserNotificationCenterDelegate {
173173 ///
174174 /// - Parameter response: a message reference (see `MessageReference`).
175175 public static func parseMessageReference( notificationResponse response: UNNotificationResponse ) -> MessageReference ? {
176- guard let userInfo = response. notification. request. content. userInfo as? [ String : String ] ,
177- let messageId = userInfo [ NotificationUserInfoKeys . messageId. rawValue] ,
178- let channelId = userInfo [ NotificationUserInfoKeys . channelId. rawValue] else {
176+ let userInfo = response. notification. request. content. userInfo
177+
178+ guard let messageId = userInfo [ NotificationUserInfoKeys . messageId. rawValue] as? String ,
179+ let channelId = userInfo [ NotificationUserInfoKeys . channelId. rawValue] as? String else {
179180 return nil
180181 }
181182
You can’t perform that action at this time.
0 commit comments