Add method that signals when a Sone is marked as known.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / WebInterface.java
index 9e92c1d..5b9efb2 100644 (file)
@@ -371,6 +371,17 @@ public class WebInterface implements CoreListener {
        }
 
        /**
+        * {@inheritDoc}
+        */
+       @Override
+       public void markSoneKnown(Sone sone) {
+               newSoneNotification.removeSone(sone);
+               if (newSoneNotification.isEmpty()) {
+                       newSoneNotification.dismiss();
+               }
+       }
+
+       /**
         * Template provider implementation that uses
         * {@link WebInterface#createReader(String)} to load templates for
         * inclusion.