Fix ReplyView when its content has been redacted. (#2606)

This commit is contained in:
Doug
2024-03-27 10:16:26 +00:00
committed by GitHub
parent be9cf8713e
commit bb725db6bb
13 changed files with 33 additions and 18 deletions
@@ -645,6 +645,8 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
replyContent = .poll(question: question)
case .sticker(let body, _, _):
replyContent = .message(.text(.init(body: body)))
case .redactedMessage:
replyContent = .redacted
default:
replyContent = .message(.text(.init(body: L10n.commonUnsupportedEvent)))
}