Skip to content

message, retry: include error code in retry receipt#956

Open
purpshell wants to merge 2 commits intotulir:mainfrom
purpshell:fix/error-on-retry-receipts
Open

message, retry: include error code in retry receipt#956
purpshell wants to merge 2 commits intotulir:mainfrom
purpshell:fix/error-on-retry-receipts

Conversation

@purpshell
Copy link
Copy Markdown
Contributor

No description provided.

@purpshell purpshell force-pushed the fix/error-on-retry-receipts branch from bc9436f to cfe5fd0 Compare October 5, 2025 14:14
Comment thread retry.go Outdated
Comment thread retry.go
func getRetryReasonFromError(err error) int {
switch {
case errors.Is(err, signalerror.ErrBadMAC):
return RetryReasonSignalErrorBadMac
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Reaching this case (and possibly others) requires some changes to libsignal-protocol-go to make it return the real error. Currently it tries all previous states and then hides the original error by returning signalerror.ErrNoValidSessions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should be resolved after tulir/libsignal-protocol-go#7

@purpshell purpshell requested a review from tulir October 6, 2025 08:25
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.

2 participants