mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-17 14:13:20 +00:00
Apply fixes
This commit is contained in:
parent
214f5a682f
commit
1fe25e4aed
@ -228,7 +228,7 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let telegramDice = self.telegramDice {
|
if let telegramDice = self.telegramDice {
|
||||||
let animationNode = ManagedDiceAnimationNode(context: item.context, emoji: telegramDice.emoji)
|
let animationNode = ManagedDiceAnimationNode(context: item.context, emoji: telegramDice.emoji.strippedEmoji)
|
||||||
if !item.message.effectivelyIncoming(item.context.account.peerId) {
|
if !item.message.effectivelyIncoming(item.context.account.peerId) {
|
||||||
animationNode.success = { [weak self] in
|
animationNode.success = { [weak self] in
|
||||||
if let strongSelf = self, let item = strongSelf.item {
|
if let strongSelf = self, let item = strongSelf.item {
|
||||||
|
|||||||
@ -72,7 +72,7 @@ private func rollingAnimationItem(account: Account, emojis: Signal<[TelegramMedi
|
|||||||
return .single(ManagedAnimationItem(source: .local("Darts_Aiming"), loop: true))
|
return .single(ManagedAnimationItem(source: .local("Darts_Aiming"), loop: true))
|
||||||
case "🏀":
|
case "🏀":
|
||||||
return .single(ManagedAnimationItem(source: .local("Basketball_Bouncing"), loop: true))
|
return .single(ManagedAnimationItem(source: .local("Basketball_Bouncing"), loop: true))
|
||||||
case "⚽️":
|
case "⚽":
|
||||||
return .single(ManagedAnimationItem(source: .local("Football_Bouncing"), loop: true))
|
return .single(ManagedAnimationItem(source: .local("Football_Bouncing"), loop: true))
|
||||||
default:
|
default:
|
||||||
return animationItem(account: account, emojis: emojis, emoji: emoji, value: nil, loop: true)
|
return animationItem(account: account, emojis: emojis, emoji: emoji, value: nil, loop: true)
|
||||||
|
|||||||
@ -5140,6 +5140,9 @@ private final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewD
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if self.isSettings {
|
||||||
|
contentHeight = max(contentHeight, layout.size.height + 140.0 + (self.headerNode.twoLineInfo ? 17.0 : 0.0) - layout.intrinsicInsets.bottom)
|
||||||
|
}
|
||||||
self.scrollNode.view.contentSize = CGSize(width: layout.size.width, height: contentHeight)
|
self.scrollNode.view.contentSize = CGSize(width: layout.size.width, height: contentHeight)
|
||||||
if self.isSettings {
|
if self.isSettings {
|
||||||
self.scrollNode.view.contentInset = UIEdgeInsets(top: 0.0, left: 0.0, bottom: layout.intrinsicInsets.bottom, right: 0.0)
|
self.scrollNode.view.contentInset = UIEdgeInsets(top: 0.0, left: 0.0, bottom: layout.intrinsicInsets.bottom, right: 0.0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user