aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-11-16 11:27:30 +0100
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-11-16 11:27:30 +0100
commitda925991c10da1cd763442c1e8b214994e926532 (patch)
treee3ce514c25ecd7cad83ae64a6b388ec50980c9bc
parent74251e61d48017a65be96d0578e5f5dceac879fc (diff)
make exporting backup compatible with conversations
-rw-r--r--src/main/java/de/pixart/messenger/services/ExportBackupService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/ExportBackupService.java b/src/main/java/de/pixart/messenger/services/ExportBackupService.java
index fb30619c9..8d105ba88 100644
--- a/src/main/java/de/pixart/messenger/services/ExportBackupService.java
+++ b/src/main/java/de/pixart/messenger/services/ExportBackupService.java
@@ -280,11 +280,12 @@ public class ExportBackupService extends Service {
Cursor cursor;
if (runsTwentySix()) {
// not select and create column Message.FILE_DELETED to be compareable with conversations
+ // in C Message.DELETED = Message.FILE_DELETED in PAM so do not select this column, too.
cursor = db.rawQuery("select messages." + String.join(", messages.", new String[]{
Message.UUID, Message.CONVERSATION, Message.TIME_SENT, Message.COUNTERPART, Message.TRUE_COUNTERPART,
Message.BODY, Message.ENCRYPTION, Message.STATUS, Message.TYPE, Message.RELATIVE_FILE_PATH,
Message.SERVER_MSG_ID, Message.FINGERPRINT, Message.CARBON, Message.EDITED, Message.READ,
- Message.DELETED, Message.OOB, Message.ERROR_MESSAGE, Message.READ_BY_MARKERS, Message.MARKABLE,
+ Message.OOB, Message.ERROR_MESSAGE, Message.READ_BY_MARKERS, Message.MARKABLE,
Message.REMOTE_MSG_ID, Message.CONVERSATION
}) + " from messages join conversations on conversations.uuid=messages.conversationUuid where conversations.accountUuid=?", new String[]{uuid});
} else {