From: David ‘Bombe’ Roden Date: Thu, 11 Nov 2010 20:40:34 +0000 (+0100) Subject: Mark own posts as read immediately. X-Git-Tag: 0.2.1~3 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6ce2c0297538ad28426eef114ba9e09a48848b86;p=Sone.git Mark own posts as read immediately. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index e34e94b..37d1741 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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); }