File tree 2 files changed +9
-7
lines changed
src/main/java/org/xmtp/android/library
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,10 @@ protobuf {
60
60
}
61
61
plugins {
62
62
grpc {
63
- artifact = " io.grpc:protoc-gen-grpc-java:1.47.0 "
63
+ artifact = " io.grpc:protoc-gen-grpc-java:1.62.2 "
64
64
}
65
65
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"
67
67
}
68
68
}
69
69
generateProtoTasks {
@@ -79,9 +79,9 @@ protobuf {
79
79
80
80
dependencies {
81
81
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 '
85
85
implementation ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
86
86
implementation ' org.web3j:crypto:5.0.0'
87
87
implementation " net.java.dev.jna:jna:5.13.0@aar"
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import org.xmtp.android.library.messages.EnvelopeBuilder
8
8
import org.xmtp.android.library.messages.Pagination
9
9
import org.xmtp.android.library.messages.Topic
10
10
import org.xmtp.android.library.messages.walletAddress
11
+ import org.xmtp.proto.message.api.v1.MessageApiOuterClass
11
12
import org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction
12
13
import java.util.Date
13
14
@@ -68,9 +69,10 @@ class ConsentList(
68
69
client.apiClient.envelopes(
69
70
Topic .preferenceList(identifier).description,
70
71
Pagination (
71
- after = lastFetched
72
+ after = lastFetched,
73
+ direction = MessageApiOuterClass .SortDirection .SORT_DIRECTION_ASCENDING
72
74
),
73
- ).reversed()
75
+ )
74
76
lastFetched = newDate
75
77
val preferences: MutableList <PrivatePreferencesAction > = mutableListOf ()
76
78
for (envelope in envelopes) {
You can’t perform that action at this time.
0 commit comments