🐛 Bug fixes on notifications

This commit is contained in:
2024-10-16 00:53:29 +08:00
parent ebeffbe1aa
commit aa17a5d52a
2 changed files with 21 additions and 57 deletions

View File

@ -53,6 +53,7 @@ class NotificationProvider extends GetxController {
List<int> markList = List.empty(growable: true);
for (final element in nty.notifications) {
if (element.id <= 0) continue;
if (element.readAt != null) continue;
markList.add(element.id);
}
@ -75,6 +76,8 @@ class NotificationProvider extends GetxController {
if (element.id <= 0) {
nty.notifications.removeAt(index);
return;
} else if (element.readAt != null) {
return;
}
isBusy.value = true;