mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Fix emoji
This commit is contained in:
@@ -84,9 +84,6 @@ final class ChatMessageNotificationItemNode: NotificationItemNode {
|
||||
private var compact: Bool?
|
||||
private var validLayout: CGFloat?
|
||||
|
||||
private var animationCache: AnimationCache?
|
||||
private var multiAnimationRenderer: MultiAnimationRenderer?
|
||||
|
||||
override init() {
|
||||
self.avatarNode = AvatarNode(font: avatarFont)
|
||||
|
||||
@@ -115,8 +112,6 @@ final class ChatMessageNotificationItemNode: NotificationItemNode {
|
||||
func setupItem(_ item: ChatMessageNotificationItem, compact: Bool) {
|
||||
self.item = item
|
||||
|
||||
self.animationCache = item.context.animationCache
|
||||
|
||||
self.compact = compact
|
||||
if compact {
|
||||
self.avatarNode.font = compactAvatarFont
|
||||
@@ -412,12 +407,12 @@ final class ChatMessageNotificationItemNode: NotificationItemNode {
|
||||
let (textLayout, textApply) = makeTextLayout(TextNodeLayoutArguments(attributedString: self.textAttributedText, backgroundColor: nil, maximumNumberOfLines: 2, truncationType: .end, constrainedSize: CGSize(width: width - leftInset - rightInset, height: CGFloat.greatestFiniteMagnitude), alignment: .left, lineSpacing: 0.0, cutout: nil, insets: UIEdgeInsets()))
|
||||
let _ = titleApply()
|
||||
|
||||
if let item = self.item, let cache = self.animationCache, let renderer = self.multiAnimationRenderer {
|
||||
if let item = self.item {
|
||||
let theme = item.context.sharedContext.currentPresentationData.with({ $0 }).theme
|
||||
let _ = textApply(TextNodeWithEntities.Arguments(
|
||||
context: item.context,
|
||||
cache: cache,
|
||||
renderer: renderer,
|
||||
cache: item.context.animationCache,
|
||||
renderer: item.context.animationRenderer,
|
||||
placeholderColor: theme.list.mediaPlaceholderColor,
|
||||
attemptSynchronous: false
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user