mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Add the gallery timeline item rendered as a placeholder
Introduces the GalleryRoomTimelineItem and its typed GalleryItem model (reusing the existing per-message content types), builds it in the RoomTimelineItemFactory and routes it through RoomTimelineItemView. For now it renders as a placeholder; the grid/list media views and the full-screen preview land in follow-up PRs. Co-authored-by: svetoslav.mitov <svetoslav.mitov@sportinno.com>
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ nonisolated extension EventBasedTimelineItemProtocol {
|
||||
}
|
||||
|
||||
switch messageBasedItem.contentType {
|
||||
case .audio, .file, .image, .video, .location, .voice:
|
||||
case .audio, .file, .image, .video, .location, .voice, .gallery:
|
||||
return false
|
||||
case .text, .emote, .notice:
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user