fix(U4): guard showNewMailNotification to Android-only to prevent DBus hang on Linux

This commit is contained in:
Thomas SharedInbox
2026-05-14 03:58:36 +02:00
parent c3305259a9
commit aa91d7ce6b
@@ -1,3 +1,5 @@
import 'dart:io';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
const _kChannelId = 'new_mail';
@@ -18,6 +20,7 @@ Future<void> initNotifications() async {
}
Future<void> showNewMailNotification(String accountEmail) async {
if (!Platform.isAndroid) return;
await _plugin.show(
accountEmail.hashCode & 0x7FFFFFFF,
'New mail',