mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-29 04:11: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 }) {
|
||||
|
||||
@@ -13,8 +13,6 @@ data class CommentStore(
|
||||
val time: Long = System.currentTimeMillis(),
|
||||
) : java.io.Serializable {
|
||||
companion object {
|
||||
|
||||
@Suppress("INAPPROPRIATE_CONST_NAME")
|
||||
private const val serialVersionUID = 2L
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user