Skip to content

Commit 0bb508d

Browse files
committed
maybe this will fix the grpc issues
1 parent 8921aa9 commit 0bb508d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

library/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ protobuf {
6060
}
6161
plugins {
6262
grpc {
63-
artifact = "io.grpc:protoc-gen-grpc-java:1.47.0"
63+
artifact = "io.grpc:protoc-gen-grpc-java:1.62.2"
6464
}
6565
grpckt {
66-
artifact = "io.grpc:protoc-gen-grpc-kotlin:1.3.0:jdk8@jar"
66+
artifact = "io.grpc:protoc-gen-grpc-kotlin:1.4.1:jdk8@jar"
6767
}
6868
}
6969
generateProtoTasks {
@@ -79,9 +79,9 @@ protobuf {
7979

8080
dependencies {
8181
implementation 'com.google.crypto.tink:tink-android:1.8.0'
82-
implementation 'io.grpc:grpc-kotlin-stub:1.3.0'
83-
implementation 'io.grpc:grpc-okhttp:1.51.1'
84-
implementation 'io.grpc:grpc-protobuf-lite:1.51.0'
82+
implementation 'io.grpc:grpc-kotlin-stub:1.4.1'
83+
implementation 'io.grpc:grpc-okhttp:1.62.2'
84+
implementation 'io.grpc:grpc-protobuf-lite:1.62.2'
8585
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
8686
implementation 'org.web3j:crypto:5.0.0'
8787
implementation "net.java.dev.jna:jna:5.13.0@aar"

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import org.xmtp.android.library.messages.EnvelopeBuilder
88
import org.xmtp.android.library.messages.Pagination
99
import org.xmtp.android.library.messages.Topic
1010
import org.xmtp.android.library.messages.walletAddress
11+
import org.xmtp.proto.message.api.v1.MessageApiOuterClass
1112
import org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction
1213
import java.util.Date
1314

@@ -68,9 +69,10 @@ class ConsentList(
6869
client.apiClient.envelopes(
6970
Topic.preferenceList(identifier).description,
7071
Pagination(
71-
after = lastFetched
72+
after = lastFetched,
73+
direction = MessageApiOuterClass.SortDirection.SORT_DIRECTION_ASCENDING
7274
),
73-
).reversed()
75+
)
7476
lastFetched = newDate
7577
val preferences: MutableList<PrivatePreferencesAction> = mutableListOf()
7678
for (envelope in envelopes) {

0 commit comments

Comments
 (0)