fixed notification update fixed

This commit is contained in:
amirrezaghabeli
2025-09-25 12:21:46 +03:30
parent 70e77a41a6
commit 70ecad74d1
3 changed files with 14 additions and 6 deletions
+6 -3
View File
@@ -131,10 +131,13 @@ class NotificationViewModel with ChangeNotifier {
notifications: updatedNotifications,
),
);
}
await getNotifications(page: currentPage);
await getUnreadNotifications();
_unreadNotificationResponse = _unreadNotificationResponse?.copyWith(
data: _unreadNotificationResponse?.data?.copyWith(
notifications: [],
),
);
}
if (context.mounted) {
AppToast.success(