fix: Timeline should should show folder media even without camera support (#2216)

- Closes #2205
This commit is contained in:
Dermot Duffy
2025-10-13 21:15:32 -07:00
committed by GitHub
parent ebbd219db7
commit 7edaac079e
19 changed files with 236 additions and 123 deletions
+6 -1
View File
@@ -537,8 +537,13 @@ export class TimelineController {
.resetSelectedResult()
.selectResultIfFound((media) => media.getID() === properties.item, criteria);
const selectedItem = newResults?.getSelectedResult();
const context: ViewContext = mergeViewContext(this._getTimelineContext(), {
mediaViewer: { seek: properties.time },
...(ViewItemClassifier.isEvent(selectedItem) &&
// Only attempt to seek if the event has a real end time, otherwise
// the viewer cannot actually seek there and shows the unseekable
// message.
selectedItem.getEndTime() && { mediaViewer: { seek: properties.time } }),
});
if (!newResults || !newResults.hasSelectedResult()) {