mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
macos related
This commit is contained in:
parent
cb5fdb9e60
commit
60c23f8a13
@ -126,7 +126,7 @@ public func downloadAppUpdate(account: Account, source: String, messageId: Int32
|
|||||||
case let .Fetching(_, progress):
|
case let .Fetching(_, progress):
|
||||||
if let size = media.size {
|
if let size = media.size {
|
||||||
if progress == 0 {
|
if progress == 0 {
|
||||||
subscriber.putNext(.started(size))
|
subscriber.putNext(.started(Int(size)))
|
||||||
} else {
|
} else {
|
||||||
subscriber.putNext(.progress(Int(progress * Float(size)), Int(size)))
|
subscriber.putNext(.progress(Int(progress * Float(size)), Int(size)))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user