mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
Configure the media preview screen based on the event and presentation. (#3604)
* Configure media previews based on the presenting screen. * Switch on TimelineKind instead of having an isPinnedEventsTimeline Bool.
This commit is contained in:
@@ -171,7 +171,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
||||
let timeline = try await TimelineProxy(timeline: room.messageFilteredTimeline(internalIdPrefix: nil,
|
||||
allowedMessageTypes: allowedMessageTypes,
|
||||
dateDividerMode: .monthly),
|
||||
kind: .media)
|
||||
kind: .media(.mediaFilesScreen))
|
||||
await timeline.subscribeForUpdates()
|
||||
|
||||
return .success(timeline)
|
||||
|
||||
@@ -9,11 +9,13 @@ import Combine
|
||||
import Foundation
|
||||
import MatrixRustSDK
|
||||
|
||||
enum TimelineKind {
|
||||
enum TimelineKind: Equatable {
|
||||
case live
|
||||
case detached
|
||||
case pinned
|
||||
case media
|
||||
|
||||
enum MediaPresentation { case roomScreen, mediaFilesScreen }
|
||||
case media(MediaPresentation)
|
||||
}
|
||||
|
||||
enum TimelineProxyError: Error {
|
||||
|
||||
Reference in New Issue
Block a user