diff options
author | Christian Schneppe <christian.schneppe@pix-art.de> | 2019-10-19 21:28:23 +0200 |
---|---|---|
committer | Christian Schneppe <christian.schneppe@pix-art.de> | 2019-10-19 21:28:23 +0200 |
commit | cf2451fa8ccc734f2085f0d796c13dd4d16e72b4 (patch) | |
tree | db9821bd1fee2b004a7c910da33b80f6f000af55 | |
parent | 2c2bb185c360c42eefeaf799fd6349a657f8a41e (diff) |
make export of chats as txt working again
fixes #402
-rw-r--r-- | src/main/java/de/pixart/messenger/services/ExportBackupService.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/ExportBackupService.java b/src/main/java/de/pixart/messenger/services/ExportBackupService.java index a6d595712..fb30619c9 100644 --- a/src/main/java/de/pixart/messenger/services/ExportBackupService.java +++ b/src/main/java/de/pixart/messenger/services/ExportBackupService.java @@ -322,6 +322,15 @@ public class ExportBackupService extends Service { int count = 0; final int max = this.mAccounts.size(); final SecureRandom secureRandom = new SecureRandom(); + if (mAccounts.size() >= 1) { + if (ReadableLogsEnabled) { + List<Conversation> conversations = mDatabaseBackend.getConversations(Conversation.STATUS_AVAILABLE); + conversations.addAll(mDatabaseBackend.getConversations(Conversation.STATUS_ARCHIVED)); + for (Conversation conversation : conversations) { + writeToFile(conversation); + } + } + } final List<File> files = new ArrayList<>(); for (Account account : this.mAccounts) { final String password = account.getPassword(); |