Skip to content

Commit

Permalink
refactor(NotificationsHelper): Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Apr 5, 2023
1 parent c53ed6b commit c8cf76c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MailCore/Utils/NotificationsHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public enum NotificationsHelper {
content.title = MailResourcesStrings.Localizable.unknownRecipientTitle
}
content.subtitle = message.formattedSubject
content.body = getCleanBodyFromMessage(message)
content.body = getCleanBodyFrom(message: message)
content.threadIdentifier = "\(mailboxId)_\(userId)"
content.targetContentIdentifier = "\(userId)_\(mailboxId)_\(message.uid)"
content.badge = getUnreadCount() as NSNumber
Expand All @@ -132,7 +132,7 @@ public enum NotificationsHelper {
return content
}

private static func getCleanBodyFromMessage(_ message: Message) -> String {
private static func getCleanBodyFrom(message: Message) -> String {
guard let fullBody = message.body?.value,
let bodyType = message.body?.type,
let body = MessageBodyUtils.splitBodyAndQuote(messageBody: fullBody)?.messageBody else {
Expand Down

0 comments on commit c8cf76c

Please sign in to comment.