mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-02 07:23:38 +00:00
Remove some unnecessary call tab requeries.
This commit is contained in:
@@ -82,6 +82,7 @@ class CallLogViewModel(
|
||||
disposables += AppDependencies
|
||||
.signalCallManager
|
||||
.peekInfoCache
|
||||
.skipWhile { cache -> cache.isEmpty() || cache.values.all { it.isCompletelyInactive } }
|
||||
.observeOn(Schedulers.computation())
|
||||
.distinctUntilChanged()
|
||||
.subscribe {
|
||||
|
||||
@@ -17,6 +17,10 @@ data class CallLinkPeekInfo(
|
||||
val isActive: Boolean,
|
||||
val isJoined: Boolean
|
||||
) {
|
||||
|
||||
val isCompletelyInactive
|
||||
get() = callId == null && !isActive && !isJoined
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun fromPeekInfo(peekInfo: PeekInfo): CallLinkPeekInfo {
|
||||
|
||||
Reference in New Issue
Block a user