From e13256499320931343bacf687536d957880e2dd8 Mon Sep 17 00:00:00 2001 From: akwizgran <michael@briarproject.org> Date: Sat, 2 Mar 2013 02:48:45 +0000 Subject: [PATCH] Seen flag was being set incorrectly for private messages. --- briar-core/src/net/sf/briar/db/DatabaseComponentImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/briar-core/src/net/sf/briar/db/DatabaseComponentImpl.java b/briar-core/src/net/sf/briar/db/DatabaseComponentImpl.java index 24633f9009..5bace6d58e 100644 --- a/briar-core/src/net/sf/briar/db/DatabaseComponentImpl.java +++ b/briar-core/src/net/sf/briar/db/DatabaseComponentImpl.java @@ -472,7 +472,7 @@ DatabaseCleaner.Callback { if(m.getGroup() != null) throw new IllegalArgumentException(); if(m.getAuthor() != null) throw new IllegalArgumentException(); if(!db.addPrivateMessage(txn, m, c)) return false; - db.addStatus(txn, c, m.getId(), incoming); + db.addStatus(txn, c, m.getId(), !incoming); // Count the bytes stored synchronized(spaceLock) { bytesStoredSinceLastCheck += m.getSerialised().length; -- GitLab