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

Minor incoming messages refactor and send m.notice on decryption errors #496

Merged
merged 4 commits into from
Apr 11, 2024

Conversation

smweber
Copy link
Collaborator

@smweber smweber commented Apr 5, 2024

We were falling through without propagating errors anywhere. I caught most decryption errors and send them along in the new Err field in DecryptionResult, to be then passed along to the bridge as a new type of chat event.

I'm going to do another pass to catch any last decryption errors, but this should be a big improvement over what we currently do.

@smweber smweber requested a review from tulir April 5, 2024 18:57
Copy link
Member

@tulir tulir left a comment

Choose a reason for hiding this comment

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

The diff is impossible to review, but the new code looks fairly sensible

@smweber smweber force-pushed the handle-decryption-errors-properly branch from fb53c0b to 5747acf Compare April 11, 2024 11:30
@smweber smweber merged commit e369a56 into main Apr 11, 2024
14 checks passed
@smweber smweber deleted the handle-decryption-errors-properly branch April 11, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants