Open source CapCut alternative.
TypeScript
fix(app): expanded notch height stops tracking update availability [rebuild]
David Le40c311d0e27b
diff --git a/apps/Donkey/Sources/Donkey/UserQueryOverlayController.swift b/apps/Donkey/Sources/Donkey/UserQueryOverlayController.swiftindex d6c528e8..5cf30b09 100644--- a/apps/Donkey/Sources/Donkey/UserQueryOverlayController.swift+++ b/apps/Donkey/Sources/Donkey/UserQueryOverlayController.swift@@ -1177,7 +1177,7 @@ final class UserQueryOverlayController {// Staged drops render a chip row above the composer; the surface grows to seat it so the// conversation list and composer keep their height.let stagedAssetsExtraHeight = model.stagedNotchAssets.isEmpty ? 0 : NotchMetrics.stagedAssetsRowExtraHeight- if hasStatusConversationDisplayText || !model.notchConversations.isEmpty || model.updateState.headerButtonTitle != nil {+ if hasStatusConversationDisplayText || !model.notchConversations.isEmpty {return NotchMetrics.expandedConversationContentHeight + stagedAssetsExtraHeight}diff --git a/apps/Donkey/Sources/DonkeyContracts/UserQueryUpdateContracts.swift b/apps/Donkey/Sources/DonkeyContracts/UserQueryUpdateContracts.swiftindex 3d3c00ef..194393f8 100644--- a/apps/Donkey/Sources/DonkeyContracts/UserQueryUpdateContracts.swift+++ b/apps/Donkey/Sources/DonkeyContracts/UserQueryUpdateContracts.swift@@ -31,14 +31,4 @@ public struct UserQueryUpdateState: Equatable, Sendable {public var isActionable: Bool {status == .available}-- public var headerButtonTitle: String? {- guard isActionable else { return nil }-- if let latestVersion, !latestVersion.isEmpty {- return "Update \(latestVersion)"- }-- return "Update"- }}