use the appropriate timeline kind (to be refactored)

This commit is contained in:
Mauro Romito
2026-07-29 14:24:51 +02:00
committed by Mauro
parent d8cb49e892
commit 68a277143a
13 changed files with 107 additions and 27 deletions
@@ -340,6 +340,7 @@ struct TimelineMediaPreviewDataSourceTests {
TimelineFixtures.mediaChunk
.compactMap { $0 as? EventBasedMessageTimelineItemProtocol }
.filter(\.supportsMediaCaption) // Voice messages can't be previewed (and don't support captions).
.filter { !($0 is GalleryRoomTimelineItem) } // Galleries are previewed through their own data source.
}
@discardableResult