*/
public void markPostKnown(Post post) {
synchronized (newPosts) {
- if (newPosts.remove(post.getId())) {
- knownPosts.add(post.getId());
+ newPosts.remove(post.getId());
+ if (knownPosts.add(post.getId())) {
coreListenerManager.fireMarkPostKnown(post);
touchConfiguration();
}
*/
public void markReplyKnown(PostReply reply) {
synchronized (newReplies) {
- if (newReplies.remove(reply.getId())) {
- knownReplies.add(reply.getId());
+ newReplies.remove(reply.getId());
+ if (knownReplies.add(reply.getId())) {
coreListenerManager.fireMarkReplyKnown(reply);
touchConfiguration();
}