fix push notification remove on ios

This commit is contained in:
otsmr 2025-07-11 10:26:14 +02:00
parent f3d53158be
commit c6198be2c4

View file

@ -164,7 +164,11 @@ class _MediaViewerViewState extends State<MediaViewerView> {
showSendTextMessageInput = false;
});
flutterLocalNotificationsPlugin.cancel(allMediaFiles.first.contactId);
if (Platform.isAndroid) {
flutterLocalNotificationsPlugin.cancel(allMediaFiles.first.contactId);
} else {
flutterLocalNotificationsPlugin.cancelAll();
}
if (allMediaFiles.first.downloadState != DownloadState.downloaded) {
setState(() {