Ensure websocket state changes are handled on main thread.

This commit is contained in:
Alex Hart
2023-05-05 13:55:45 -03:00
parent b0e1294584
commit 9eadd92d05

View File

@@ -64,7 +64,7 @@ class ConversationListViewModel(
val pinnedCount: Int
get() = store.state.pinnedCount
val webSocketState: Observable<WebSocketConnectionState>
get() = ApplicationDependencies.getSignalWebSocket().webSocketState
get() = ApplicationDependencies.getSignalWebSocket().webSocketState.observeOn(AndroidSchedulers.mainThread())
@get:JvmName("currentSelectedConversations")
val currentSelectedConversations: Set<Conversation>