From 7b50ba04601a005d229b8a1bd7565c771fab18d3 Mon Sep 17 00:00:00 2001 From: Alex Risch Date: Tue, 2 Jan 2024 20:26:30 -0700 Subject: [PATCH] Add Support for Custom Content Types when preparing messages Added logic in Conversation to handle content type in prepare method Updated bridged module to handle encrypted messages Requires iOS Sdk Change: https://github.com/xmtp/xmtp-ios/pull/212 Requires Android Sdk Change: --- .../src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt b/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt index cb43fa028..6b49dfebc 100644 --- a/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt +++ b/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt @@ -465,7 +465,6 @@ class XMTPModule : Module() { val prepared = conversation.prepareMessage( encodedContent = encodedContent, - options = SendOptions(contentType = sending.type) ) val preparedAtMillis = prepared.envelopes[0].timestampNs / 1_000_000 val preparedFile = File.createTempFile(prepared.messageId, null)