diff --git a/flutter/lib/pages/channel_view/channel_view.dart b/flutter/lib/pages/channel_view/channel_view.dart index 2680bbf..6168b74 100644 --- a/flutter/lib/pages/channel_view/channel_view.dart +++ b/flutter/lib/pages/channel_view/channel_view.dart @@ -547,7 +547,7 @@ class _ChannelViewPageState extends State { final acc = AppAuth(); try { - await APIClient.unconfirmSubscription(acc, widget.channelID, subscription!.subscriptionID); + await APIClient.unconfirmSubscription(acc, widget.channelID, sub.subscriptionID); widget.needsReload?.call(); await _initStateAsync(false); @@ -563,7 +563,7 @@ class _ChannelViewPageState extends State { final acc = AppAuth(); try { - await APIClient.confirmSubscription(acc, widget.channelID, subscription!.subscriptionID); + await APIClient.confirmSubscription(acc, widget.channelID, sub.subscriptionID); widget.needsReload?.call(); await _initStateAsync(false); @@ -579,7 +579,7 @@ class _ChannelViewPageState extends State { final acc = AppAuth(); try { - await APIClient.deleteSubscription(acc, widget.channelID, subscription!.subscriptionID); + await APIClient.deleteSubscription(acc, widget.channelID, sub.subscriptionID); widget.needsReload?.call(); await _initStateAsync(false); diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 878d350..dc8dad6 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -33,7 +33,7 @@ dependencies: toastification: ^2.0.0 uuid: ^4.4.0 share_plus: ^9.0.0 - flutter_local_notifications: ^17.1.2 + flutter_local_notifications: ^17.2.3 path: any