Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OutgoingMessage: Reduce the calls to registerError
In some cases, due to promise chaining and error propagation, we were calling registerError more than once for a given error. This would then cause the overall callback for the send operation to be called with a partial set of errors, as well as duplicates. Note: we do need to find a way to attach identityKey to the OutgoingIdentityKeyError in the case where it comes directly from the encrypt() instead of our pre-key operations. FREEBIE
- Loading branch information
1 parent
30bc3fc
commit 116e4d2
Showing
2 changed files
with
38 additions
and
16 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