Save the configuration after marking posts and replies as known.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 22 Dec 2010 23:05:09 +0000 (00:05 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 22 Dec 2010 23:05:09 +0000 (00:05 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 0c3d8ff..807b1f3 100644 (file)
@@ -1306,6 +1306,7 @@ public class Core implements IdentityListener {
                        if (newPosts.remove(post.getId())) {
                                knownPosts.add(post.getId());
                                coreListenerManager.fireMarkPostKnown(post);
+                               saveConfiguration();
                        }
                }
        }
@@ -1386,6 +1387,7 @@ public class Core implements IdentityListener {
                        if (newReplies.remove(reply.getId())) {
                                knownReplies.add(reply.getId());
                                coreListenerManager.fireMarkReplyKnown(reply);
+                               saveConfiguration();
                        }
                }
        }