We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eb204a commit f4107ebCopy full SHA for f4107eb
lib/providers/notification_provider.dart
@@ -49,6 +49,8 @@ class NotificationProvider extends ChangeNotifier {
49
}
50
51
Future<void> markAsRead({required sdk.Notification notification}) async {
52
+ if (notification.isRead) return;
53
+
54
try {
55
final request = sdk.PatchedNotificationRequest((b) => b..isRead = true);
56
await notificationsApi.partialUpdate(
0 commit comments