From: David ‘Bombe’ Roden Date: Mon, 13 Dec 2010 06:49:52 +0000 (+0100) Subject: Mark posts and replies as known as long as the first-start notification is shown. X-Git-Tag: beta-freefall-0.6.2-1~192 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=dccb0c87b374bd036fa2f939bc803e514d9c9095 Mark posts and replies as known as long as the first-start notification is shown. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 95978ce..d17c2d5 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -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); } }