Skip to content

Commit

Permalink
chore: Update MailCore/Cache/Attachments/AttachmentsManagerWorker/Att…
Browse files Browse the repository at this point in the history
…achmentsManagerWorker.swift

Co-authored-by: Philippe Weidmann <philippe.weidmann@infomaniak.com>
  • Loading branch information
adrien-coye and PhilippeWeidmann authored Mar 27, 2024
1 parent 401b24f commit e648d64
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,14 +415,7 @@ extension AttachmentsManagerWorker: AttachmentsManagerWorkable {
}

private func anyUsableTitle(in textAttachments: [TextAttachment]) -> String {
textAttachments.first { textAttachment in
guard let title = textAttachment.title,
!title.isEmpty else {
return false
}

return true
}?.title ?? ""
textAttachments.first { $0.title?.isEmpty == false }?.title ?? ""
}

private func allURLs(in textAttachments: [TextAttachment]) -> [String] {
Expand Down

0 comments on commit e648d64

Please sign in to comment.