Desktop mute notification

🐛 Bug fixes on tray icon
This commit is contained in:
2025-02-24 22:46:02 +08:00
parent 52d6bb083e
commit ad0ee971c1
6 changed files with 45 additions and 20 deletions

View File

@ -79,6 +79,7 @@ class NotificationProvider extends ChangeNotifier {
List<SnNotification> notifications = List.empty(growable: true);
int? skippableNotifyChannel;
bool isMuted = false;
void listen() {
_ws.pk.stream.listen((event) {
@ -107,7 +108,7 @@ class NotificationProvider extends ChangeNotifier {
notifyListeners();
updateTray();
if (!kIsWeb) {
if (!kIsWeb && !isMuted) {
if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
LocalNotification notify = LocalNotification(
title: notification.title,