Skip to content

Commit

Permalink
Update MailCore/Utils/NotificationsHelper.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Perignon <valentin.perignon@infomaniak.com>
  • Loading branch information
PhilippeWeidmann and valentinperignon committed Apr 5, 2023
1 parent c53ed6b commit 93b7b72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MailCore/Utils/NotificationsHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ public enum NotificationsHelper {
return content
}

private static func getCleanBodyFromMessage(_ message: Message) -> String {
private static func getCleanBodyFrom(message: Message) -> String
// or
private static func getCleanBody(from 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 93b7b72

Please sign in to comment.