diff --git a/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/ContentJson.kt b/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/ContentJson.kt index 5912ce076..a9daa162b 100644 --- a/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/ContentJson.kt +++ b/android/src/main/java/expo/modules/xmtpreactnativesdk/wrappers/ContentJson.kt @@ -80,8 +80,8 @@ class ContentJson( val reaction = obj.get("reaction").asJsonObject return ContentJson(ContentTypeReaction, Reaction( reference = reaction.get("reference").asString, - action = ReactionAction.valueOf(reaction.get("action").asString), - schema = ReactionSchema.valueOf(reaction.get("schema").asString), + action = ReactionAction.valueOf(reaction.get("action").asString.lowercase()), + schema = ReactionSchema.valueOf(reaction.get("schema").asString.lowercase()), content = reaction.get("content").asString, )) } else if (obj.has("reply")) { diff --git a/src/XMTP.types.ts b/src/XMTP.types.ts index c92ee67a1..15e347402 100644 --- a/src/XMTP.types.ts +++ b/src/XMTP.types.ts @@ -9,8 +9,8 @@ export type ReplyContent = { export type ReactionContent = { reference: string; - action: "added" | "removed"; - schema: "unicode" | "shortcode" | "custom"; + action: "added" | "removed" | "unknown"; + schema: "unicode" | "shortcode" | "custom" | "unknown"; content: string; };