-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dialog: accurate match of outgoing legs
The initial code assumes that for each transaction branch, we serially create a dialog leg - therefore, when a reply is received for a specific branch, we match the leg based on its index. This logic breaks when having a branch that has no outgoing leg/message (i.e. when push notification is used), because the dialog legs id gets offsetted by the number of "blind" branches, thus we are no longer able to properly match the reply with the leg. This fix makes sure that when creating a let, it has the same index as the transaction's branch id, hence the reply is properly matched.
- Loading branch information
1 parent
4e5a6e1
commit 5280c86
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters