Fixed call logs details if it's not attached to any account

This commit is contained in:
Sylvain Berfini 2025-03-20 14:55:49 +01:00
parent 2c314a5334
commit 48d7976f9b

View file

@ -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)
}