Skip to content

Commit

Permalink
make sure activity images are cleared before any other attempt to set…
Browse files Browse the repository at this point in the history
… is done, to avoid timing issues leading to displaying older images
  • Loading branch information
simonmcl committed Apr 29, 2024
1 parent 4532e3b commit 876d33b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Kukai Mobile/Modules/Activity/Cells/ActivityItemCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class ActivityItemCell: UITableViewCell, UITableViewCellContainerView, UITableVi
typeLabel.accessibilityIdentifier = "activity-type-label"
titleLabel.accessibilityIdentifier = "activity-item-title"

iconView.sd_cancelCurrentImageLoad()
iconView.image = nil

// Time or confirmed
let timeSinceNow = (data.date ?? Date()).timeIntervalSince(Date())
if data.status == .unconfirmed {
Expand Down

0 comments on commit 876d33b

Please sign in to comment.