diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-11-11 13:57:31 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-11-11 13:57:31 +0100 |
commit | af0610c7366bdc266dde670d99eddb0f942d9be0 (patch) | |
tree | 859da7a27148a242b424b8202cde9f18eb6de35c /src/main/java/de/pixart/messenger/persistance | |
parent | b38fe1e8f0a9a1aa479b4a61f65f61ae78db6665 (diff) |
also respect deleted messages in readable logs
Diffstat (limited to 'src/main/java/de/pixart/messenger/persistance')
-rw-r--r-- | src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java b/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java index b4de5cd92..7b316af70 100644 --- a/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java +++ b/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java @@ -761,9 +761,9 @@ public class DatabaseBackend extends SQLiteOpenHelper { return () -> { class MessageIterator implements Iterator<Message> { SQLiteDatabase db = getReadableDatabase(); - String[] selectionArgs = {conversation.getUuid()}; + String[] selectionArgs = {conversation.getUuid(), "1"}; Cursor cursor = db.query(Message.TABLENAME, null, Message.CONVERSATION - + "=?", selectionArgs, null, null, Message.TIME_SENT + + "=? and " + Message.DELETED + "<?", selectionArgs, null, null, Message.TIME_SENT + " ASC", null); public MessageIterator() { |