mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Various fixes
This commit is contained in:
@@ -1219,7 +1219,13 @@ final class ChatMessageInteractiveFileNode: ASDisplayNode {
|
||||
streamingStatusNode.frame = streamingCacheStatusFrame
|
||||
}
|
||||
|
||||
if let updatedStatusSignal = updatedStatusSignal {
|
||||
if var updatedStatusSignal = updatedStatusSignal {
|
||||
if strongSelf.file?.isInstantVideo == true {
|
||||
updatedStatusSignal = updatedStatusSignal
|
||||
|> mapToThrottled { next -> Signal<(FileMediaResourceStatus, MediaResourceStatus?), NoError> in
|
||||
return .single(next) |> then(.complete() |> delay(0.1, queue: Queue.concurrentDefaultQueue()))
|
||||
}
|
||||
}
|
||||
strongSelf.statusDisposable.set((updatedStatusSignal |> deliverOnMainQueue).start(next: { [weak strongSelf] status, actualFetchStatus in
|
||||
displayLinkDispatcher.dispatch {
|
||||
if let strongSelf = strongSelf {
|
||||
|
||||
Reference in New Issue
Block a user