From 8fa548bb3835ad8a8d7e07d9fac88b1a3335c13b Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Sun, 1 Feb 2026 19:16:08 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20#5063=20-=20cache=20title?= =?UTF-8?q?=20and=20summary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if cached values are the same as new values, don’t reapply article content --- .../Cells/MainTimelineCollectionViewCell.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift b/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift index 22d573dc6..4386e353b 100644 --- a/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift +++ b/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift @@ -77,13 +77,19 @@ class MainTimelineCollectionViewCell: UICollectionViewCell { super.prepareForReuse() rangeOfTitle = nil rangeOfSummary = nil + title = "" + summary = "" } private func configure(_ cellData: MainTimelineCellData) { articleContent.numberOfLines = cellData.numberOfLines updateIndicatorView(configurationState) - addArticleContent(configurationState) - + if title != cellData.title || summary != cellData.summary { + title = cellData.title + summary = cellData.summary + addArticleContent(configurationState) + } + if cellData.showFeedName == .feed { articleByLine.text = cellData.feedName } else if cellData.showFeedName == .byline {