mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fetch call history from Core instead of Account if only one of them
This commit is contained in:
parent
a0d74c8036
commit
2abad0ab9a
1 changed files with 7 additions and 1 deletions
|
|
@ -142,7 +142,13 @@ class HistoryListViewModel
|
|||
var count = 0
|
||||
|
||||
val account = LinphoneUtils.getDefaultAccount()
|
||||
val logs = account?.callLogs ?: coreContext.core.callLogs
|
||||
// Fetch all call logs if only one account to workaround no history issue
|
||||
val logs = if (coreContext.core.accountList.size > 1) {
|
||||
account?.callLogs ?: coreContext.core.callLogs
|
||||
} else {
|
||||
coreContext.core.callLogs
|
||||
}
|
||||
|
||||
for (callLog in logs) {
|
||||
val model = CallLogModel(callLog)
|
||||
if (isCallLogMatchingFilter(model, filter)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue