fix: various small fixes
This commit is contained in:
parent
4ccf6fa1c8
commit
e5ec6a6526
8 changed files with 44 additions and 21 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue