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

Add native encryption support to Mjolnir #528

Merged
merged 5 commits into from
Oct 1, 2024
Merged

Add native encryption support to Mjolnir #528

merged 5 commits into from
Oct 1, 2024

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Sep 30, 2024

No description provided.

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

looks like it does the thing - thank you!

Comment on lines +25 to +26
# Note that this option is now deprecated as native encryption is now supported in mjolnir,
# and will be removed at a later date.
Copy link
Member

Choose a reason for hiding this comment

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

we should call this out in the release notes when we get there

Comment on lines -139 to -143
if (e.isAxiosError && e?.response?.data?.errcode === 'M_USER_IN_USE') {
// Then we've already registered the user in a previous run and that is ok.
} else {
throw e;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

For some historical context

This code is redundant and the version that "actually works" is here. It's not flagged up by typescript as dead code because the error will be implicitly typed as any rather than unknown.

e.isAxiosError is there because at one point axios was used, and then removed in order to just reuse the http client the matrix-bot-sdk brings (accessed via getRequestFn).

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