Mark posts and replies as known as long as the first-start notification is shown.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / WebInterface.java
index 95978ce..d17c2d5 100644 (file)
@@ -585,6 +585,8 @@ public class WebInterface implements CoreListener {
                newPostNotification.add(post);
                if (!hasFirstStartNotification()) {
                        notificationManager.addNotification(newPostNotification);
+               } else {
+                       getCore().markPostKnown(post);
                }
        }
 
@@ -599,6 +601,8 @@ public class WebInterface implements CoreListener {
                newReplyNotification.add(reply);
                if (!hasFirstStartNotification()) {
                        notificationManager.addNotification(newReplyNotification);
+               } else {
+                       getCore().markReplyKnown(reply);
                }
        }