mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 13:12:53 +00:00
Collapse the player for Video Info / Go to Channel from rows inside it
Related and queue rows in the player use the default menu context, so the pushed screen landed underneath the still-expanded player. Collapse on player state instead of the .player context. Recommendations without an authorId no longer offer Go to Channel, which opened an empty channel.
This commit is contained in:
@@ -1432,7 +1432,9 @@ private struct InvidiousRecommendedVideo: Decodable, Sendable {
|
||||
id: .global(videoId),
|
||||
title: title,
|
||||
description: nil,
|
||||
author: Author(id: authorId, name: author),
|
||||
// An empty authorId (unlinked recommendation author) can't open a
|
||||
// channel, so it hides Go to Channel instead of failing to load.
|
||||
author: Author(id: authorId, name: author, hasRealChannelInfo: !authorId.isEmpty),
|
||||
duration: TimeInterval(lengthSeconds),
|
||||
publishedAt: nil,
|
||||
publishedText: nil,
|
||||
|
||||
@@ -807,7 +807,9 @@ private struct YatteeRecommendedVideo: Decodable, Sendable {
|
||||
id: .global(videoId),
|
||||
title: title,
|
||||
description: nil,
|
||||
author: Author(id: authorId, name: author),
|
||||
// An empty authorId (unlinked recommendation author) can't open a
|
||||
// channel, so it hides Go to Channel instead of failing to load.
|
||||
author: Author(id: authorId, name: author, hasRealChannelInfo: !authorId.isEmpty),
|
||||
duration: TimeInterval(lengthSeconds),
|
||||
publishedAt: nil,
|
||||
publishedText: nil,
|
||||
|
||||
Reference in New Issue
Block a user