Skip to content
Snippets Groups Projects
Commit 32dafe02 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Properly hide inactive networks if selected

parent b5120d7e
No related branches found
No related tags found
No related merge requests found
...@@ -414,6 +414,8 @@ class QuasselViewModel : ViewModel() { ...@@ -414,6 +414,8 @@ class QuasselViewModel : ViewModel() {
} else { } else {
it to network it to network
} }
}.filter {
!config.hideInactiveNetworks() || it.second.isConnected()
}.map<Pair<BufferInfo, Network>, Observable<BufferProps>?> { (info, network) -> }.map<Pair<BufferInfo, Network>, Observable<BufferProps>?> { (info, network) ->
bufferSyncer.liveActivity(info.bufferId).switchMap { activity -> bufferSyncer.liveActivity(info.bufferId).switchMap { activity ->
bufferSyncer.liveHighlightCount(info.bufferId).map { highlights -> bufferSyncer.liveHighlightCount(info.bufferId).map { highlights ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment