Mark own posts as read immediately.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Nov 2010 20:40:34 +0000 (21:40 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Nov 2010 20:40:34 +0000 (21:40 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index e34e94b..37d1741 100644 (file)
@@ -933,6 +933,9 @@ public class Core implements IdentityListener {
                synchronized (posts) {
                        posts.put(post.getId(), post);
                }
+               synchronized (newPosts) {
+                       knownPosts.add(post.getId());
+               }
                sone.addPost(post);
                saveSone(sone);
        }