📱 Fix new notify indicator on large screen

This commit is contained in:
2025-01-31 20:26:20 +08:00
parent 319d5c7d7f
commit b7b921f1f4
3 changed files with 8 additions and 2 deletions

View File

@ -78,6 +78,7 @@ class NotificationProvider extends ChangeNotifier {
_ws.stream.stream.listen((event) {
if (event.method == 'notifications.new') {
final notification = SnNotification.fromJson(event.payload!);
if (showingCount < 0) showingCount = 0;
showingCount++;
notifications.add(notification);
Future.delayed(const Duration(seconds: 3), () {