From cf2451fa8ccc734f2085f0d796c13dd4d16e72b4 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 19 Oct 2019 21:28:23 +0200 Subject: make export of chats as txt working again fixes #402 --- .../java/de/pixart/messenger/services/ExportBackupService.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 conversations = mDatabaseBackend.getConversations(Conversation.STATUS_AVAILABLE); + conversations.addAll(mDatabaseBackend.getConversations(Conversation.STATUS_ARCHIVED)); + for (Conversation conversation : conversations) { + writeToFile(conversation); + } + } + } final List files = new ArrayList<>(); for (Account account : this.mAccounts) { final String password = account.getPassword(); -- cgit v1.2.3