Skip to content

Commit

Permalink
workaround for probem sms not updatng state
Browse files Browse the repository at this point in the history
  • Loading branch information
Keveltiah committed Jul 28, 2023
1 parent 616ff06 commit 1cb942c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sms_advanced.dart
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class SmsSender {
Stream<SmsMessage?> 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':
Expand Down

0 comments on commit 1cb942c

Please sign in to comment.