Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/xmtp/xmtp-android into np/d…
Browse files Browse the repository at this point in the history
…isappearing-messages
  • Loading branch information
nplasterer committed Feb 7, 2025
2 parents 90907ef + 28aebb5 commit 5c960c4
Show file tree
Hide file tree
Showing 8 changed files with 375 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ class HistorySyncTest {
)
}

val state3 = runBlocking { alixClient3.inboxState(true) }
assertEquals(state3.installations.size, 3)

runBlocking {
alix2Group.send("A message")
alix2Group.send("A second message")
Expand All @@ -131,7 +134,11 @@ class HistorySyncTest {
Thread.sleep(2000)
alixClient3.conversations.syncAllConversations()
Thread.sleep(2000)
val alix3Group = alixClient3.findGroup(alixGroup.id)!!

val alix3Groups = alixClient3.conversations.listGroups()
assertEquals(alix3Groups.size, 1)
val alix3Group = alixClient3.findGroup(alixGroup.id)
?: throw AssertionError("Failed to find group with ID: ${alixGroup.id}")
assertEquals(runBlocking { alixGroup.messages() }.size, 5)
assertEquals(runBlocking { alix2Group.messages() }.size, 5)
assertEquals(runBlocking { alix3Group.messages() }.size, 5)
Expand Down
4 changes: 2 additions & 2 deletions library/src/main/java/libxmtp-version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: ae4eb9cf
Version: b137466b
Branch: main
Date: 2025-02-03 22:08:43 +0000
Date: 2025-02-06 16:54:22 +0000
6 changes: 5 additions & 1 deletion library/src/main/java/org/xmtp/android/library/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ data class ClientOptions(
val preAuthenticateToInboxCallback: PreEventCallback? = null,
val appContext: Context,
val dbEncryptionKey: ByteArray,
val historySyncUrl: String? = null,
val historySyncUrl: String? = when (api.env) {
XMTPEnvironment.PRODUCTION -> "https://message-history.production.ephemera.network/"
XMTPEnvironment.LOCAL -> "http://0.0.0.0:5558"
else -> "https://message-history.dev.ephemera.network/"
},
val dbDirectory: String? = null,
) {
data class Api(
Expand Down
369 changes: 360 additions & 9 deletions library/src/main/java/xmtpv3.kt

Large diffs are not rendered by default.

Binary file modified library/src/main/jniLibs/arm64-v8a/libuniffi_xmtpv3.so
Binary file not shown.
Binary file modified library/src/main/jniLibs/armeabi-v7a/libuniffi_xmtpv3.so
Binary file not shown.
Binary file modified library/src/main/jniLibs/x86/libuniffi_xmtpv3.so
Binary file not shown.
Binary file modified library/src/main/jniLibs/x86_64/libuniffi_xmtpv3.so
Binary file not shown.

0 comments on commit 5c960c4

Please sign in to comment.