Skip to content

Commit

Permalink
refactor: Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon committed Dec 8, 2023
1 parent 2b15f2e commit 574c783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MailCore/Cache/DraftContentManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ extension DraftContentManager {
private func formatReply(message: Message) throws -> String {
guard let formattedMessage = try extractHTMLFromReplyingBody(of: message) else { return "" }

let headerText = MailResourcesStrings.Localizable.messageReplyHeader(
let dateHeader = MailResourcesStrings.Localizable.messageReplyHeader(
DateFormatter.localizedString(from: message.date, dateStyle: .medium, timeStyle: .short),
message.from.first?.htmlDescription ?? ""
)

return """
<div class="\(Constants.replyQuoteHTMLClass) answerContentMessage" >
<div>\(headerText)</div>
<div>\(dateHeader)</div>
<blockquote class="ws-ng-quote">
\(formattedMessage)
</blockquote>
Expand Down

0 comments on commit 574c783

Please sign in to comment.