Allow filtering notifications without a current Sone.
[Sone.git] / src / main / java / net / pterodactylus / sone / notify / ListNotification.java
index 0383648..74e3100 100644 (file)
@@ -81,7 +81,7 @@ public class ListNotification<T> extends TemplateNotification {
         *            The list notification to copy
         */
        public ListNotification(ListNotification<T> listNotification) {
-               super(listNotification.getId(), new Template());
+               super(listNotification.getId(), listNotification.getCreatedTime(), listNotification.getLastUpdatedTime(), listNotification.isDismissable(), new Template());
                this.key = listNotification.key;
                getTemplate().add(listNotification.getTemplate());
                getTemplate().getInitialContext().set(key, elements);
@@ -101,7 +101,8 @@ public class ListNotification<T> extends TemplateNotification {
        }
 
        /**
-        * Sets the elements to show in this notification.
+        * Sets the elements to show in this notification. This method will not call
+        * {@link #touch()}.
         *
         * @param elements
         *            The elements to show