Skip to content

Commit

Permalink
Fix canMessage function in XMTPModule and update
Browse files Browse the repository at this point in the history
test case
  • Loading branch information
kele-leanes committed Nov 30, 2023
1 parent 93043c1 commit e4b5bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ class XMTPModule : Module() {
try {
logV("staticCanMessage")
val options = ClientOptions(api = apiEnvironments(environment, appVersion))
Client.canMessage(peerAddress = peerAddress, options = options)
true
val canMessage = Client.canMessage(peerAddress = peerAddress, options = options)
canMessage
} catch (e: Exception) {
throw XMTPException("Failed to create client: $e")
}
Expand Down
2 changes: 1 addition & 1 deletion example/src/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ test("canManagePreferences", async () => {
test("is address in the XMTP network", async () => {
const alix = await XMTP.Client.createRandom({ env: "local" });

const isAddressAvailable = await XMTP.publicCanMessage(alix.address, 'local');
const isAddressAvailable = await XMTP.staticCanMessage(alix.address, 'local');

return isAddressAvailable
});
Expand Down

0 comments on commit e4b5bc5

Please sign in to comment.