Commit 28cd0c6 1 parent be8a3d8 commit 28cd0c6 Copy full SHA for 28cd0c6
File tree 2 files changed +3
-2
lines changed
example/src/main/java/org/xmtp/android/example
library/src/main/java/org/xmtp/android/library
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class MainViewModel : ViewModel() {
77
77
val stream: StateFlow <MainListItem ?> =
78
78
stateFlow(viewModelScope, null ) { subscriptionCount ->
79
79
if (ClientManager .clientState.value is ClientManager .ClientState .Ready ) {
80
- ClientManager .client.conversations.stream ()
80
+ ClientManager .client.conversations.streamAll ()
81
81
.flowWhileShared(
82
82
subscriptionCount,
83
83
SharingStarted .WhileSubscribed (1000L )
Original file line number Diff line number Diff line change @@ -511,7 +511,8 @@ data class Conversations(
511
511
}
512
512
}
513
513
val stream = libXMTPConversations?.stream(groupCallback)
514
- awaitClose { stream?.end() }
514
+ ? : throw XMTPException (" Client does not support Groups" )
515
+ awaitClose { stream.end() }
515
516
}
516
517
517
518
/* *
You can’t perform that action at this time.
0 commit comments