fix(call-history): sort calls by most recent first
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user