mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Refactoring
This commit is contained in:
@@ -257,7 +257,7 @@ final class StatusView: UIView {
|
||||
self.activeDurationTimer?.invalidate()
|
||||
}
|
||||
|
||||
func update(strings: PresentationStrings, state: State, transition: Transition) -> CGSize {
|
||||
func update(strings: PresentationStrings, state: State, transition: ComponentTransition) -> CGSize {
|
||||
if let layoutState = self.layoutState, layoutState.strings === strings, layoutState.state == state {
|
||||
return layoutState.size
|
||||
}
|
||||
@@ -302,7 +302,7 @@ final class StatusView: UIView {
|
||||
}
|
||||
}
|
||||
|
||||
private func updateInternal(strings: PresentationStrings, state: State, transition: Transition) -> CGSize {
|
||||
private func updateInternal(strings: PresentationStrings, state: State, transition: ComponentTransition) -> CGSize {
|
||||
let textString: String
|
||||
var needsDots = false
|
||||
var monospacedDigits = false
|
||||
|
||||
Reference in New Issue
Block a user