mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various improvements
This commit is contained in:
@@ -678,9 +678,9 @@ public final class TelegramRootController: NavigationController, TelegramRootCon
|
||||
var coverTime: Double?
|
||||
if let coverImageTimestamp = values.coverImageTimestamp {
|
||||
if let trimRange = values.videoTrimRange {
|
||||
coverTime = coverImageTimestamp - trimRange.lowerBound
|
||||
coverTime = min(duration, coverImageTimestamp - trimRange.lowerBound)
|
||||
} else {
|
||||
coverTime = coverImageTimestamp
|
||||
coverTime = min(duration, coverImageTimestamp)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user