-
Notifications
You must be signed in to change notification settings - Fork 56
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
Conversation
950a5e4
to
c8b3634
Compare
There was a problem hiding this 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!
# Note that this option is now deprecated as native encryption is now supported in mjolnir, | ||
# and will be removed at a later date. |
There was a problem hiding this comment.
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
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; | ||
} |
There was a problem hiding this comment.
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
).
No description provided.