mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed call logs details if it's not attached to any account
This commit is contained in:
parent
2c314a5334
commit
48d7976f9b
1 changed files with 10 additions and 0 deletions
|
|
@ -330,6 +330,16 @@ class HistoryViewModel
|
|||
history.add(historyModel)
|
||||
}
|
||||
|
||||
// Required when "unique account displays all call logs from Core" workaround
|
||||
if (list.isEmpty()) {
|
||||
for (log in coreContext.core.callLogs) {
|
||||
if (log.remoteAddress.weakEqual(address)) {
|
||||
val historyModel = CallLogHistoryModel(log)
|
||||
history.add(historyModel)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Log.i("$TAG Found [${history.size}] call logs")
|
||||
historyCallLogs.postValue(history)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue