From a572c4274b43cdf8545aabda044dc9379bf432f9 Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Mon, 6 Jun 2022 15:56:02 +1000 Subject: [PATCH] minor fix --- .../Conversations/Views & Modals/ReactionListSheet.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Session/Conversations/Views & Modals/ReactionListSheet.swift b/Session/Conversations/Views & Modals/ReactionListSheet.swift index f57027401..fb688a698 100644 --- a/Session/Conversations/Views & Modals/ReactionListSheet.swift +++ b/Session/Conversations/Views & Modals/ReactionListSheet.swift @@ -228,7 +228,7 @@ extension ReactionListSheet: UICollectionViewDataSource, UICollectionViewDelegat let cell = collectionView.dequeueReusableCell(withReuseIdentifier: Cell.identifier, for: indexPath) as! Cell let item = reactionMap.orderedItems[indexPath.item] cell.data = (item.0, item.1.count) - cell.isSelected = item.0 == selectedReaction! + cell.isCurrentSelection = item.0 == selectedReaction! return cell } @@ -278,7 +278,7 @@ extension ReactionListSheet { fileprivate final class Cell : UICollectionViewCell { var data: (String, Int)? { didSet { update() } } - override var isSelected: Bool { didSet { updateBorder() } } + var isCurrentSelection: Bool? { didSet { updateBorder() } } static let identifier = "ReactionListSheetCell" @@ -337,7 +337,7 @@ extension ReactionListSheet { } private func updateBorder() { - if isSelected { + if isCurrentSelection == true { snContentView.addBorder(with: Colors.accent) } else { snContentView.addBorder(with: .clear)