Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gets peer message when manual open channel fails #272

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

Jasonvdb
Copy link
Collaborator

  • Returns specific errors from channelManager.createChannel when possible
  • Adds peer_message to channel_manager_channel_closed event when exists
  • lm.createChannel(...) returns peer message as the error string if it exists

Screenshot 2024-09-20 at 10 51 10

ovitrif
ovitrif previously approved these changes Sep 20, 2024
Copy link
Contributor

@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.

Approved with some suggestions, initially I was only interested in cleaning up that part of the Kotlin code, but then I thought "the more the 2 sources are alike, the easier to maintain" so I sought a way to align the code doing the same in Swift if the Kotlin one gets updated 👍🏻

lib/android/src/main/java/com/reactnativeldk/LdkModule.kt Outdated Show resolved Hide resolved
lib/ios/Ldk.swift Show resolved Hide resolved
pwltr
pwltr previously approved these changes Sep 23, 2024
@Jasonvdb Jasonvdb dismissed stale reviews from pwltr and ovitrif via 6270891 September 23, 2024 15:53
pwltr
pwltr previously approved these changes Sep 25, 2024
@Jasonvdb Jasonvdb merged commit 452c098 into master Sep 25, 2024
2 of 6 checks passed
@Jasonvdb Jasonvdb deleted the open-channe-error branch September 25, 2024 12:41
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.

3 participants