Skip to content

[trello.com/c/jVWnkguC] Fix crash in WalletViewControllerBase#898

Merged
Lainaaa merged 1 commit intorelease/3.11.0from
trello.com/c/jVWnkguC
Aug 15, 2025
Merged

[trello.com/c/jVWnkguC] Fix crash in WalletViewControllerBase#898
Lainaaa merged 1 commit intorelease/3.11.0from
trello.com/c/jVWnkguC

Conversation

@Lainaaa
Copy link
Member

@Lainaaa Lainaaa commented Aug 15, 2025

No description provided.

@Lainaaa Lainaaa self-assigned this Aug 15, 2025
@Lainaaa Lainaaa merged commit 4ff94d0 into release/3.11.0 Aug 15, 2025
@Lainaaa Lainaaa deleted the trello.com/c/jVWnkguC branch August 15, 2025 17:12
@dev-adamant-im dev-adamant-im added bug Something isn't working Mobile Issues specific to iOS or Android apps Swift iOS-specific code and features in Swift labels Sep 23, 2025
@dev-adamant-im dev-adamant-im linked an issue Sep 23, 2025 that may be closed by this pull request
@adamantmm adamantmm requested a review from Copilot February 13, 2026 07:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a BalanceRow.reload() call during wallet UI updates in WalletViewControllerBase, likely to avoid a crash triggered by row reloading during updates.

Changes:

  • Removed row.reload() after updating the balance row value/cell.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -491,7 +491,6 @@ extension WalletViewControllerBase {
isBalanceInitialized: wallet.isBalanceInitialized
)
row.updateCell()
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing row.reload() may prevent the table from recalculating the BalanceRow height when row.value?.fiat transitions between nil and non-nil (the row’s height closure depends on that). This can leave the balance cell stuck at the old height after currency rates update. Consider triggering a safe height/layout refresh here (e.g., tableView.beginUpdates()/endUpdates() or another non-crashing row/table refresh mechanism) after updating row.value.

Suggested change
row.updateCell()
row.updateCell()
if let tableView = self.tableView {
tableView.beginUpdates()
tableView.endUpdates()
}

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Mobile Issues specific to iOS or Android apps Swift iOS-specific code and features in Swift

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Crash: Enabling SKL wallet in Settings

3 participants