Media gallery - support for files and voice messages (#3605)

* Move the voice message views to where they belong
* Add separate struct for each media events timeline view
* Add support for all the different media gallery message types and get the files section working
This commit is contained in:
Stefan Ceriu
2024-12-12 10:02:10 +02:00
committed by GitHub
parent 606eb0a30a
commit 114255c5ec
30 changed files with 374 additions and 112 deletions
@@ -281,6 +281,12 @@ extension PreviewTests {
}
}
func test_imageMediaEventsTimelineView() {
for preview in ImageMediaEventsTimelineView_Previews._allPreviews {
assertSnapshots(matching: preview)
}
}
func test_imageRoomTimelineView() {
for preview in ImageRoomTimelineView_Previews._allPreviews {
assertSnapshots(matching: preview)
@@ -767,6 +773,12 @@ extension PreviewTests {
}
}
func test_separatorMediaEventsTimelineView() {
for preview in SeparatorMediaEventsTimelineView_Previews._allPreviews {
assertSnapshots(matching: preview)
}
}
func test_separatorRoomTimelineView() {
for preview in SeparatorRoomTimelineView_Previews._allPreviews {
assertSnapshots(matching: preview)
@@ -995,6 +1007,12 @@ extension PreviewTests {
}
}
func test_videoMediaEventsTimelineView() {
for preview in VideoMediaEventsTimelineView_Previews._allPreviews {
assertSnapshots(matching: preview)
}
}
func test_videoRoomTimelineView() {
for preview in VideoRoomTimelineView_Previews._allPreviews {
assertSnapshots(matching: preview)