mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Allow previews in the timeline to include filtered galleries (#5943)
* remove the usage of the timeline kind override in favour of getting it properly from the timeline view model * allow the previews to include gallery items filtered by the allowed types when started outside the gallery sss asa * fix for actions not being forwarded to the timeline right * pr suggestions
This commit is contained in:
@@ -18,6 +18,7 @@ struct TimelineControllerMockConfiguration {
|
||||
var timelineProxy: TimelineProxyProtocol?
|
||||
var timelineItemsTimestamps: [TimelineItemIdentifier: Date] = [:]
|
||||
var paginationState: TimelinePaginationState = .initial
|
||||
var allowedGalleryItemTypes: [TimelineAllowedGalleryItemType]?
|
||||
}
|
||||
|
||||
@MainActor extension TimelineControllerMock {
|
||||
@@ -44,6 +45,7 @@ struct TimelineControllerMockConfiguration {
|
||||
|
||||
callbacks = PassthroughSubject()
|
||||
timelineKind = configuration.timelineKind
|
||||
allowedGalleryItemTypes = configuration.allowedGalleryItemTypes
|
||||
paginationState = configuration.paginationState
|
||||
timelineItems = configuration.timelineItems
|
||||
|
||||
|
||||
Reference in New Issue
Block a user