🐛 Fix deduplication
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / notify / ListNotification.kt
index dccc430..99fd89a 100644 (file)
@@ -52,7 +52,7 @@ class ListNotification<T> : TemplateNotification {
 
        fun setElements(elements: Collection<T>) {
                realElements.clear()
-               realElements.addAll(elements)
+               realElements.addAll(elements.distinct())
                touch()
        }