mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Displaying core call logs instead of account call logs when the user has only one account
This commit is contained in:
parent
5230855a93
commit
72664e4dde
1 changed files with 6 additions and 1 deletions
|
|
@ -45,7 +45,12 @@ class HistoryListViewModel: ObservableObject {
|
|||
func computeCallLogsList() {
|
||||
coreContext.doOnCoreQueue { core in
|
||||
let account = core.defaultAccount
|
||||
let logs = account?.callLogs != nil ? account!.callLogs : core.callLogs
|
||||
|
||||
// Fetch all call logs if only one account to workaround no history issue
|
||||
// TODO FIXME: remove workaround later
|
||||
let logs = (core.accountList.count > 1)
|
||||
? (account?.callLogs ?? core.callLogs)
|
||||
: core.callLogs
|
||||
|
||||
var callLogsBis: [HistoryModel] = []
|
||||
var callLogsTmpBis: [HistoryModel] = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue