mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Include call link count when determining total content count of calls tab.
This commit is contained in:
committed by
Greyson Parrelli
parent
58d9127ae4
commit
6053c4aac5
@@ -42,7 +42,7 @@ class CallLogViewModel(
|
||||
val isEmpty: Boolean get() = _isEmpty.value ?: false
|
||||
|
||||
val totalCount: Flowable<Int> = Flowable.combineLatest(distinctQueryFilterPairs, data) { a, _ -> a }
|
||||
.map { (query, filter) -> callLogRepository.getCallsCount(query, filter) }
|
||||
.map { (query, filter) -> callLogRepository.getCallsCount(query, filter) + callLogRepository.getCallLinksCount(query, filter) }
|
||||
.doOnNext { _isEmpty.onNext(it <= 0) }
|
||||
|
||||
val selectionStateSnapshot: CallLogSelectionState
|
||||
|
||||
Reference in New Issue
Block a user