mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various Fixes
This commit is contained in:
parent
bd761a7d8f
commit
cdd69f7188
@ -227,8 +227,6 @@ public class InvisibleInkDustNode: ASDisplayNode {
|
||||
|
||||
let timeToRead = min(45.0, ceil(max(4.0, Double(spoilersLength) * 0.04)))
|
||||
Queue.mainQueue().after(timeToRead * UIView.animationDurationFactor()) {
|
||||
self.isRevealed = false
|
||||
|
||||
if let (_, color, _, _) = self.currentParams {
|
||||
let colorSpace = CGColorSpaceCreateDeviceRGB()
|
||||
let animation = POPBasicAnimation()
|
||||
@ -269,7 +267,9 @@ public class InvisibleInkDustNode: ASDisplayNode {
|
||||
Queue.mainQueue().after(0.15) {
|
||||
let transition = ContainedViewLayoutTransition.animated(duration: 0.4, curve: .linear)
|
||||
transition.updateAlpha(node: self, alpha: 1.0)
|
||||
transition.updateAlpha(node: textNode, alpha: 0.0)
|
||||
transition.updateAlpha(node: textNode, alpha: 0.0, completion: { [weak self] _ in
|
||||
self?.isRevealed = false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1254,7 +1254,7 @@ class ChatMessageInstantVideoItemNode: ChatMessageItemView, UIGestureRecognizerD
|
||||
let animationProgress: CGFloat = (currentValue - initialHeight) / (targetHeight - initialHeight)
|
||||
let scaleProgress: CGFloat
|
||||
var effectiveAvatarInset = avatarInset
|
||||
if abs(targetHeight - initialHeight) > 100.0 {
|
||||
if abs(targetHeight - initialHeight) > 80.0 {
|
||||
if currentValue < targetHeight {
|
||||
initialSize = displaySize
|
||||
targetSize = maximumDisplaySize
|
||||
|
@ -1205,7 +1205,7 @@ private final class SparseItemGridBindingImpl: SparseItemGridBinding, ListShimme
|
||||
self.listItemInteraction = listItemInteraction
|
||||
self.chatControllerInteraction = chatControllerInteraction
|
||||
self.directMediaImageCache = directMediaImageCache
|
||||
self.captureProtected = captureProtected
|
||||
self.captureProtected = false //captureProtected
|
||||
|
||||
let presentationData = self.context.sharedContext.currentPresentationData.with { $0 }
|
||||
self.strings = presentationData.strings
|
||||
|
Loading…
x
Reference in New Issue
Block a user