Skip to content

Commit

Permalink
add sync all
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Nov 26, 2024
1 parent b594006 commit 52f8c03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ class ConversationsTest {
runBlocking {
boClient.conversations.sync()
boDm?.sync()
alixClient.conversations.sync()
alixClient2.conversations.sync()
alixClient2.preferences.syncConsent()
alixClient.conversations.syncAllConversations()
Thread.sleep(2000)
Expand Down Expand Up @@ -267,7 +265,6 @@ class ConversationsTest {

runBlocking {
alixGroup.send("Hello")
alixClient2.conversations.sync()
alixClient.conversations.syncAllConversations()
alixClient2.conversations.syncAllConversations()
}
Expand All @@ -289,8 +286,6 @@ class ConversationsTest {
alix2Group.updateConsentState(ConsentState.DENIED)
val dm3 = alixClient2.conversations.newConversation(caro.walletAddress)
dm3.updateConsentState(ConsentState.DENIED)
alixClient.conversations.sync()
alixClient2.conversations.sync()
alixClient.conversations.syncAllConversations()
alixClient2.conversations.syncAllConversations()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ data class Conversations(
ffiConversations.sync()
}

// Sync all existing local conversation data from the network (Note: call syncConversations() first to get the latest list of conversations)
// Sync all new and existing conversations data from the network
suspend fun syncAllConversations(): UInt {
return ffiConversations.syncAllConversations()
}
Expand Down

0 comments on commit 52f8c03

Please sign in to comment.