Added link detection in plain text (not available ootb in SwiftUI) and support for user, room, event and group identifiers + room aliases.

This commit is contained in:
Stefan Ceriu
2022-03-24 16:26:58 +02:00
parent fde8ce63eb
commit ff7c8f6128
8 changed files with 176 additions and 28 deletions
@@ -30,7 +30,7 @@ struct RoomTimelineItemFactory {
switch roomMessage {
case let message as TextRoomMessage:
let attributedText = attributedStringBuilder.fromHTML(message.htmlBody)
let attributedText = attributedStringBuilder.fromHTML(message.htmlBody ?? message.body)
let attributedComponents = attributedStringBuilder.blockquoteCoalescedComponentsFrom(attributedText)
return TextRoomTimelineItem(id: message.id,