diff --git a/submodules/ShimmerEffect/Sources/StickerShimmerEffectNode.swift b/submodules/ShimmerEffect/Sources/StickerShimmerEffectNode.swift index ec51d66136..aa094d58ea 100644 --- a/submodules/ShimmerEffect/Sources/StickerShimmerEffectNode.swift +++ b/submodules/ShimmerEffect/Sources/StickerShimmerEffectNode.swift @@ -114,7 +114,7 @@ public class StickerShimmerEffectNode: ASDisplayNode { self.currentSize = size self.backgroundNode.backgroundColor = foregroundColor - self.backgroundNode.isHidden = !enableEffect + self.backgroundNode.isHidden = true//!enableEffect if enableEffect { self.effectNode.update(backgroundColor: backgroundColor == nil ? .clear : foregroundColor, foregroundColor: shimmeringColor, horizontal: true, effectSize: nil, globalTimeOffset: true, duration: nil) diff --git a/submodules/TelegramPresentationData/Sources/DefaultDayPresentationTheme.swift b/submodules/TelegramPresentationData/Sources/DefaultDayPresentationTheme.swift index 1233f97cc9..714ca9940b 100644 --- a/submodules/TelegramPresentationData/Sources/DefaultDayPresentationTheme.swift +++ b/submodules/TelegramPresentationData/Sources/DefaultDayPresentationTheme.swift @@ -24,7 +24,7 @@ public func selectReactionFillStaticColor(theme: PresentationTheme, wallpaper: T } else if case .builtin = wallpaper { return UIColor(rgb: 0x748391, alpha: 0.45) } else { - return theme.chat.serviceMessage.components.withCustomWallpaper.dateFillStatic + return .clear//theme.chat.serviceMessage.components.withCustomWallpaper.dateFillStatic } } diff --git a/submodules/TelegramUI/Sources/AppDelegate.swift b/submodules/TelegramUI/Sources/AppDelegate.swift index e1371e1346..6c233f21da 100644 --- a/submodules/TelegramUI/Sources/AppDelegate.swift +++ b/submodules/TelegramUI/Sources/AppDelegate.swift @@ -514,6 +514,7 @@ private func extractAccountManagerState(records: AccountRecordsView Void) -> Void, params: ListViewItemLayoutParams, synchronousLoads: Bool, previousItem: ListViewItem?, nextItem: ListViewItem?, completion: @escaping (ListViewItemNode, @escaping () -> (Signal?, (ListViewItemApply) -> Void)) -> Void) { async { let node = ChatUnreadItemNode() - node.layoutForParams(params, item: self, previousItem: previousItem, nextItem: nextItem) + + let dateAtBottom = !chatItemsHaveCommonDateHeader(self, nextItem) + let (layout, apply) = node.asyncLayout()(self, params, dateAtBottom) + + node.contentSize = layout.contentSize + node.insets = layout.insets + Queue.mainQueue().async { completion(node, { - return (nil, { _ in }) + return (nil, { _ in + apply() + }) }) } }