mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-27 08:27:53 +00:00
Stories
This commit is contained in:
@@ -1452,7 +1452,7 @@ final class ChatMessageInteractiveFileNode: ASDisplayNode {
|
||||
}
|
||||
}
|
||||
|
||||
let state: SemanticStatusNodeState
|
||||
var state: SemanticStatusNodeState
|
||||
var streamingState: SemanticStatusNodeState = .none
|
||||
|
||||
let isSending = message.flags.isSending
|
||||
@@ -1563,6 +1563,20 @@ final class ChatMessageInteractiveFileNode: ASDisplayNode {
|
||||
streamingState = .none
|
||||
}
|
||||
|
||||
if isSending {
|
||||
if case .progress = streamingState {
|
||||
} else {
|
||||
let adjustedProgress: CGFloat = 0.027
|
||||
streamingState = .progress(value: CGFloat(adjustedProgress), cancelEnabled: true, appearance: .init(inset: 1.0, lineWidth: 2.0))
|
||||
}
|
||||
|
||||
if case .progress = state {
|
||||
} else {
|
||||
let adjustedProgress: CGFloat = 0.027
|
||||
state = .progress(value: CGFloat(adjustedProgress), cancelEnabled: true, appearance: .init(inset: 1.0, lineWidth: 2.0))
|
||||
}
|
||||
}
|
||||
|
||||
let backgroundNodeColor: UIColor
|
||||
let foregroundNodeColor: UIColor
|
||||
if self.iconNode != nil {
|
||||
|
||||
Reference in New Issue
Block a user