Skip to content

Commit ee6b1cb

Browse files
committed
remove syncs so the client will need to manage
1 parent 7641ac7 commit ee6b1cb

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ data class Conversations(
101101

102102
fun listGroups(): List<Group> {
103103
return runBlocking {
104-
syncGroups()
105104
libXMTPConversations?.list(opts = FfiListConversationsOptions(null, null, null))?.map {
106105
Group(client, it)
107106
}

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

-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class Group(val client: Client, private val libXMTPGroup: FfiGroup) {
7979
direction: PagingInfoSortDirection = MessageApiOuterClass.SortDirection.SORT_DIRECTION_DESCENDING,
8080
): List<DecodedMessage> {
8181
return runBlocking {
82-
libXMTPGroup.sync()
8382
val messages = libXMTPGroup.findMessages(
8483
opts = FfiListMessagesOptions(
8584
sentBeforeNs = before?.time?.nanoseconds?.toLong(DurationUnit.NANOSECONDS),
@@ -103,7 +102,6 @@ class Group(val client: Client, private val libXMTPGroup: FfiGroup) {
103102
direction: PagingInfoSortDirection = MessageApiOuterClass.SortDirection.SORT_DIRECTION_DESCENDING,
104103
): List<DecryptedMessage> {
105104
return runBlocking {
106-
libXMTPGroup.sync()
107105
val messages = libXMTPGroup.findMessages(
108106
opts = FfiListMessagesOptions(
109107
sentBeforeNs = before?.time?.nanoseconds?.toLong(DurationUnit.NANOSECONDS),

0 commit comments

Comments
 (0)