From 1cb942cff28e0621855cd0fbc41bbcf353e77c6b Mon Sep 17 00:00:00 2001 From: kevel Date: Sat, 29 Jul 2023 00:56:52 +0100 Subject: [PATCH] workaround for probem sms not updatng state --- lib/sms_advanced.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sms_advanced.dart b/lib/sms_advanced.dart index 7bcea1c..9cfe4a6 100644 --- a/lib/sms_advanced.dart +++ b/lib/sms_advanced.dart @@ -361,7 +361,7 @@ class SmsSender { Stream get onSmsDelivered => _deliveredStreamController.stream; void _onSmsStateChanged(dynamic stateChange) { - int? id = stateChange['sentId']; + int? id = _sentMessages.keys.first; if (_sentMessages.containsKey(id)) { switch (stateChange['state']) { case 'sent':