mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-23 07:21:02 +00:00
feat: subscriptions in notifications
This commit is contained in:
@@ -188,7 +188,7 @@ class CommentNotificationTask : Task {
|
||||
null
|
||||
) ?: listOf()
|
||||
val newStore = notificationStore.toMutableList()
|
||||
if (newStore.size > 10) {
|
||||
if (newStore.size > 30) {
|
||||
newStore.remove(newStore.minByOrNull { it.time })
|
||||
}
|
||||
if (newStore.any { it.content == notification.content }) {
|
||||
|
||||
Reference in New Issue
Block a user