fix(call-history): sort calls by most recent first

This commit is contained in:
2026-04-26 05:13:05 +02:00
parent 6f5855e2fd
commit 32eb4e0d52

View File

@@ -9,7 +9,9 @@ Future<List<CallHistoryEntity>> callHistory(
Ref ref,
String deviceIdentificator,
) async {
return ref
final calls = await ref
.read(callHistoryDatasourceProvider)
.getCallHistory(deviceIdentificator: deviceIdentificator);
calls.sort((a, b) => b.occurredAt.compareTo(a.occurredAt));
return calls;
}