Mark posts and replies as known as long as the first-start notification is shown.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 13 Dec 2010 06:49:52 +0000 (07:49 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 13 Dec 2010 06:49:52 +0000 (07:49 +0100)
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);
                }
        }