From ba0ca4e4a706c2b5490426951507f4d56ede59bc Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Thu, 25 May 2023 16:31:15 +0200 Subject: [PATCH] fix dismissing bailey --- .../android/habitica/ui/viewmodels/NotificationsViewModel.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/viewmodels/NotificationsViewModel.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/viewmodels/NotificationsViewModel.kt index 07baf6c27..deb78e9f7 100644 --- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/viewmodels/NotificationsViewModel.kt +++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/viewmodels/NotificationsViewModel.kt @@ -181,6 +181,7 @@ open class NotificationsViewModel @Inject constructor( fun dismissNotification(notification : Notification) { if (isCustomNotification(notification)) { if (isCustomNewStuffNotification(notification)) { + updateUser("flags.newStuff", false) customNotifications.value = customNotifications.value.filterNot { it.id == notification.id } }