Various fixes

This commit is contained in:
Ilya Laktyushin
2020-11-09 00:45:44 +04:00
parent 0bdfd79289
commit 564ee0d966
22 changed files with 415 additions and 160 deletions

View File

@@ -1035,7 +1035,7 @@ final class ChatMessageInteractiveMediaNode: ASDisplayNode, GalleryItemTransitio
badgeContent = .text(inset: 0.0, backgroundColor: messageTheme.mediaDateAndStatusFillColor, foregroundColor: messageTheme.mediaDateAndStatusTextColor, text: string)
}
var animated: Bool = animated
if let updatingMedia = attributes.updatingMedia {
if let updatingMedia = attributes.updatingMedia, case .update = updatingMedia.media {
state = .progress(color: messageTheme.mediaOverlayControlColors.foregroundColor, lineWidth: nil, value: CGFloat(updatingMedia.progress), cancelEnabled: true)
} else if var fetchStatus = self.fetchStatus {
var playerPosition: Int32?