mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
macos related
This commit is contained in:
parent
cb5fdb9e60
commit
60c23f8a13
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ public func downloadAppUpdate(account: Account, source: String, messageId: Int32
|
|||
case let .Fetching(_, progress):
|
||||
if let size = media.size {
|
||||
if progress == 0 {
|
||||
subscriber.putNext(.started(size))
|
||||
subscriber.putNext(.started(Int(size)))
|
||||
} else {
|
||||
subscriber.putNext(.progress(Int(progress * Float(size)), Int(size)))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue