diff --git a/submodules/TelegramUI/Sources/ChatUnreadItem.swift b/submodules/TelegramUI/Sources/ChatUnreadItem.swift index 432eb3e92d..84378321ba 100644 --- a/submodules/TelegramUI/Sources/ChatUnreadItem.swift +++ b/submodules/TelegramUI/Sources/ChatUnreadItem.swift @@ -167,10 +167,7 @@ class ChatUnreadItemNode: ListViewItemNode { strongSelf.backgroundNode.isHidden = true backgroundContent.frame = strongSelf.backgroundNode.frame if let (rect, containerSize) = strongSelf.absolutePosition { - var backgroundFrame = backgroundContent.frame - backgroundFrame.origin.x += rect.minX - backgroundFrame.origin.y += rect.minY - backgroundContent.update(rect: backgroundFrame, within: containerSize, transition: .immediate) + strongSelf.updateAbsoluteRect(rect, within: containerSize) } } else { strongSelf.backgroundNode.isHidden = false