Seen flag was being set incorrectly for private messages.

This commit is contained in:
akwizgran
2013-03-02 02:48:45 +00:00
parent 63a520bae4
commit e132564993

View File

@@ -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;