Video avatar fixes

This commit is contained in:
Ilya Laktyushin
2020-07-11 01:16:07 +03:00
parent b25e1e502b
commit 99f166b698
4 changed files with 12 additions and 28 deletions

View File

@@ -626,7 +626,7 @@ public func createGroupControllerImpl(context: AccountContext, peerIds: [PeerId]
}
if let timestamp = videoStartTimestamp {
videoStartTimestamp = max(0.0, min(timestamp, result.duration))
videoStartTimestamp = max(0.0, min(timestamp, result.duration - 0.05))
}
var value = stat()