From 93b7b723e4d6b51e62e39f65541d4a02f0271c31 Mon Sep 17 00:00:00 2001 From: Philippe Weidmann Date: Wed, 5 Apr 2023 09:44:59 +0200 Subject: [PATCH] Update MailCore/Utils/NotificationsHelper.swift Co-authored-by: Valentin Perignon --- MailCore/Utils/NotificationsHelper.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MailCore/Utils/NotificationsHelper.swift b/MailCore/Utils/NotificationsHelper.swift index 34b565a9b4..2e218f115c 100644 --- a/MailCore/Utils/NotificationsHelper.swift +++ b/MailCore/Utils/NotificationsHelper.swift @@ -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 {