Skip to content

Commit

Permalink
fix: Remove useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
charlella committed Feb 22, 2024
1 parent 74fd0e2 commit e3a75bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions MailCore/Utils/NotificationsHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ public enum NotificationsHelper {
public static func generateBaseNotificationFor(message: Message,
mailboxId: Int,
userId: Int,
incompleteNotification: UNMutableNotificationContent)
async -> UNMutableNotificationContent {
incompleteNotification: UNMutableNotificationContent) async {
incompleteNotification.threadIdentifier = "\(mailboxId)_\(userId)"
incompleteNotification.targetContentIdentifier = "\(userId)_\(mailboxId)_\(message.uid)"
incompleteNotification.badge = await getUnreadCount() as NSNumber
Expand All @@ -183,7 +182,6 @@ public enum NotificationsHelper {
incompleteNotification.userInfo = [NotificationsHelper.UserInfoKeys.userId: userId,
NotificationsHelper.UserInfoKeys.mailboxId: mailboxId,
NotificationsHelper.UserInfoKeys.messageUid: message.uid]
return incompleteNotification
}

public static func generateNotificationFor(message: Message,
Expand Down
2 changes: 1 addition & 1 deletion MailNotificationServiceExtension/NotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ final class NotificationService: UNNotificationServiceExtension {
return contentHandler(bestAttemptContent)
}

let baseNotification = await NotificationsHelper.generateBaseNotificationFor(
await NotificationsHelper.generateBaseNotificationFor(
message: fetchedMessage,
mailboxId: mailboxId,
userId: userId,
Expand Down

0 comments on commit e3a75bc

Please sign in to comment.