Added html body to text messages and rendering through Apple's default NSAttributedString.DocumentType.html parser

This commit is contained in:
Stefan Ceriu
2022-03-22 10:09:46 +02:00
parent d201ca1ad8
commit 5c7761e851
12 changed files with 77 additions and 45 deletions
@@ -11,7 +11,7 @@ import UIKit
struct ImageRoomTimelineItem: EventBasedTimelineItemProtocol, Identifiable, Equatable {
let id: String
let text: String
let body: String
let timestamp: String
let shouldShowSenderDetails: Bool
@@ -11,7 +11,8 @@ import UIKit
struct TextRoomTimelineItem: EventBasedTimelineItemProtocol, Identifiable, Equatable {
let id: String
let text: String
let body: String
var htmlBody: String?
let timestamp: String
let shouldShowSenderDetails: Bool