fix: various small fixes

This commit is contained in:
rebelonion 2024-05-22 11:26:48 -05:00
parent 4ccf6fa1c8
commit e5ec6a6526
8 changed files with 44 additions and 21 deletions

View file

@ -240,6 +240,9 @@ class SubscriptionNotificationTask : Task {
if (newStore.size >= 100) {
newStore.remove(newStore.minByOrNull { it.time })
}
if (newStore.any { it.title == notification.title && it.content == notification.content}) {
return
}
newStore.add(notification)
PrefManager.setVal(PrefName.SubscriptionNotificationStore, newStore)