Skip to content

Commit 6d18760

Browse files
committed
Solving test for conversation using new flag
1 parent 95dda24 commit 6d18760

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

library/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ dependencies {
8686
implementation 'org.web3j:crypto:5.0.0'
8787
implementation "net.java.dev.jna:jna:5.13.0@aar"
8888
api 'com.google.protobuf:protobuf-kotlin-lite:3.22.3'
89-
api 'org.xmtp:proto-kotlin:3.40.0'
89+
api 'org.xmtp:proto-kotlin:3.40.1'
9090

9191
testImplementation 'junit:junit:4.13.2'
9292
androidTestImplementation 'app.cash.turbine:turbine:0.12.1'

library/src/main/java/org/xmtp/android/library/ConversationV2.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.xmtp.android.library
22

33
import android.util.Log
4+
import com.google.protobuf.ByteString
45
import kotlinx.coroutines.flow.Flow
56
import kotlinx.coroutines.flow.flow
67
import kotlinx.coroutines.flow.mapNotNull
@@ -188,7 +189,7 @@ data class ConversationV2(
188189
val preparedMessage = prepareMessage(
189190
encodedContent = encodedContent,
190191
options = options,
191-
shouldPush = shouldPush(codec, encodedContent.content),
192+
shouldPush = shouldPush(codec, encodedContent.content.toStringUtf8()),
192193
)
193194
return send(preparedMessage)
194195
}

0 commit comments

Comments
 (0)