mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-15 07:45:55 +10:00
better set loadingProgress logic
This commit is contained in:
@@ -59,6 +59,8 @@ class ChatLeftVideoCell: UICollectionViewCell {
|
||||
|
||||
if progress <= 1.0 {
|
||||
loadingProgress = progress
|
||||
} else if progress > 1.0 {
|
||||
loadingProgress = 1.0
|
||||
}
|
||||
|
||||
if let image = image {
|
||||
|
||||
@@ -47,6 +47,8 @@ class ChatRightVideoCell: ChatRightBaseCell {
|
||||
|
||||
if progress <= 1.0 {
|
||||
loadingProgress = progress
|
||||
} else if progress > 1.0 {
|
||||
loadingProgress = 1.0
|
||||
}
|
||||
|
||||
if let image = image {
|
||||
|
||||
Reference in New Issue
Block a user