Skip to content

Commit

Permalink
get all the types lined up in the index file
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Nov 9, 2024
1 parent edb7330 commit 86d0e58
Show file tree
Hide file tree
Showing 14 changed files with 283 additions and 931 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,12 @@ class XMTPModule : Module() {
override fun definition() = ModuleDefinition {
Name("XMTP")
Events(
// Auth
"sign",
"authed",
"preAuthenticateToInboxCallback",
"conversation",
"allMessages",
"message",
"conversationMessage",
)

Function("address") { inboxId: String ->
Expand Down Expand Up @@ -1291,7 +1290,7 @@ class XMTPModule : Module() {
try {
client.conversations.streamAllMessages(type).collect { message ->
sendEvent(
"allMessages",
"message",
mapOf(
"inboxId" to inboxId,
"message" to DecodedMessageWrapper.encodeMap(message),
Expand All @@ -1315,7 +1314,7 @@ class XMTPModule : Module() {
try {
conversation.streamMessages().collect { message ->
sendEvent(
"message",
"conversationMessage",
mapOf(
"inboxId" to inboxId,
"message" to DecodedMessageWrapper.encodeMap(message),
Expand Down
8 changes: 0 additions & 8 deletions src/XMTP.types.ts

This file was deleted.

Loading

0 comments on commit 86d0e58

Please sign in to comment.