fix: makeGsmCall in historypage

This commit is contained in:
Florian Griffon 2025-03-04 14:23:02 +01:00
parent 9bfb55821d
commit b042a68a8e

View File

@ -419,7 +419,7 @@ class _HistoryPageState extends State<HistoryPage>
icon: const Icon(Icons.phone, color: Colors.green), icon: const Icon(Icons.phone, color: Colors.green),
onPressed: () async { onPressed: () async {
if (contact.phones.isNotEmpty) { if (contact.phones.isNotEmpty) {
_callService.makeGsmCall(contact.phones.first.number); _callService.makeGsmCall(context, phoneNumber: contact.phones.first.number);
} else { } else {
ScaffoldMessenger.of(context).showSnackBar( ScaffoldMessenger.of(context).showSnackBar(
const SnackBar( const SnackBar(