fixed notification update fixed
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user