diff --git a/Linphone/UI/Main/History/ViewModel/HistoryListViewModel.swift b/Linphone/UI/Main/History/ViewModel/HistoryListViewModel.swift index 90aff417b..ceb6df8ea 100644 --- a/Linphone/UI/Main/History/ViewModel/HistoryListViewModel.swift +++ b/Linphone/UI/Main/History/ViewModel/HistoryListViewModel.swift @@ -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] = []