Skip to content

Conversation

@ben-kaufman
Copy link
Contributor

  • Fix duplicated tx received notifications by marking activity as seen
  • Save tx details and fetch them from bitkit-core
  • Update ldk-node to v0.7.0-rc.1

pwltr
pwltr previously approved these changes Dec 11, 2025
Copy link
Contributor

@pwltr pwltr left a comment

Choose a reason for hiding this comment

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

Tested, LGTM

- Fix duplicated tx received notifications by marking activity as seen
- Save tx details and fetch them from bitkit-core
- Update ldk-node to v0.7.0-rc.1
@ovitrif
Copy link
Collaborator

ovitrif commented Dec 11, 2025

Fix duplicated tx received notifications by marking activity as seen

Need this for Android too ❤️ , nice solution!

@jvsena42 jvsena42 requested a review from Copilot December 12, 2025 09:37
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

This PR updates dependencies (bitkit-core v0.1.33 and ldk-node v0.7.0-rc.1) and implements activity tracking improvements to prevent duplicate transaction received notifications. The changes include adding a seenAt field to activity records, storing transaction details in bitkit-core, and updating error handling for new ldk-node API patterns.

Key changes:

  • Added seenAt timestamp tracking to activity records to mark when users have seen notifications
  • Refactored transaction details storage from ldk-node to bitkit-core for persistence
  • Updated ldk-node initialization to use new entropy setting pattern

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
BitkitTests/ActivityListTest.swift Added seenAt: nil parameter to all test activity creation calls
Bitkit/Views/Wallets/Sheets/BoostSheet.swift Added seenAt: nil parameter to test activity creation
Bitkit/Views/Wallets/Activity/ActivityItemView.swift Added seenAt: nil parameter to preview activity creation
Bitkit/Views/Wallets/Activity/ActivityExplorerView.swift Updated to fetch transaction details from CoreService instead of LightningService; added seenAt: nil to preview activities
Bitkit/Views/Gift/GiftLoading.swift Added marking of gift receipt activity as seen before showing success sheet
Bitkit/ViewModels/AppViewModel.swift Implemented seen status checking before showing received transaction sheets to prevent duplicates
Bitkit/Utilities/Errors.swift Added new ldk-node error cases and reorganized error handling for BuildError
Bitkit/Services/LightningService.swift Removed local transaction details method; updated to use new ldk-node entropy setting API
Bitkit/Services/CoreService.swift Added comprehensive seen tracking functionality, transaction details mapping/storage, and updated to use BitkitCore.TransactionDetails type
Bitkit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved Updated bitkit-core and ldk-node dependency revisions

Copy link
Member

@jvsena42 jvsena42 left a comment

Choose a reason for hiding this comment

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

good solution!

Copy link
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

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

tAck

@ovitrif ovitrif merged commit 019f89f into master Dec 12, 2025
11 of 14 checks passed
@ovitrif ovitrif deleted the update-bitkit-ldk-node-versions branch December 12, 2025 18:28
BitcoinErrorLog pushed a commit to BitcoinErrorLog/bitkit-ios that referenced this pull request Dec 15, 2025
…ode-versions

Update bitkit-core v0.1.33 and ldk-node v0.7.0-rc.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants