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

fix: register codecs on create of clients in android #183

Merged
merged 1 commit into from
Dec 16, 2023

Conversation

nplasterer
Copy link
Contributor

We weren't registering the codecs in Android when creating the client which could cause issues with rendering codecs. This registers the codecs on client create

@nplasterer nplasterer self-assigned this Dec 15, 2023
@nplasterer nplasterer requested a review from a team as a code owner December 15, 2023 23:16
@@ -145,6 +145,7 @@ class XMTPModule : Module() {
signer = reactSigner
val options = ClientOptions(api = apiEnvironments(environment, appVersion))
clients[address] = Client().create(account = reactSigner, options = options)
ContentJson.Companion
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure it's necessary to call Companion here it could be implicitly called without it. But I wanted to explicit that this is triggering the init function that registers the codecs.

@nplasterer nplasterer merged commit 9e6c8d2 into main Dec 16, 2023
4 of 5 checks passed
@nplasterer nplasterer deleted the np/register-codecs branch December 16, 2023 05:49
Copy link
Contributor

🎉 This PR is included in version 1.22.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants