Skip to content

Commit 4ddc026

Browse files
committed
reorder logic a tiny bit
1 parent f3a2e31 commit 4ddc026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/src/main/java/org/xmtp/android/example/MainViewModel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class MainViewModel : ViewModel() {
4545
val listItems = mutableListOf<MainListItem>()
4646
try {
4747
val conversations = ClientManager.client.conversations.list(includeGroups = true)
48+
val hmacKeysResult = ClientManager.client.conversations.getHmacKeys()
4849
val subscriptions = conversations.map {
49-
val hmacKeysResult = ClientManager.client.conversations.getHmacKeys()
5050
val hmacKeys = hmacKeysResult.hmacKeysMap
5151
val result = hmacKeys[it.topic]?.valuesList?.map { hmacKey ->
5252
Service.Subscription.HmacKey.newBuilder().also { sub_key ->

0 commit comments

Comments
 (0)