From 3926235d57ed602af4c82ab236b32c64bef62efb Mon Sep 17 00:00:00 2001 From: rhunk <101876869+rhunk@users.noreply.github.com> Date: Wed, 6 Sep 2023 23:02:42 +0200 Subject: [PATCH] fix(chat_exporter): enter conversation callback bug --- .../me/rhunk/snapenhance/action/impl/ExportChatMessages.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/action/impl/ExportChatMessages.kt b/core/src/main/kotlin/me/rhunk/snapenhance/action/impl/ExportChatMessages.kt index d9cfdf19..2ba55c50 100644 --- a/core/src/main/kotlin/me/rhunk/snapenhance/action/impl/ExportChatMessages.kt +++ b/core/src/main/kotlin/me/rhunk/snapenhance/action/impl/ExportChatMessages.kt @@ -216,8 +216,10 @@ class ExportChatMessages : AbstractAction() { val conversationId = friendFeedEntry.key!! val conversationName = friendFeedEntry.feedDisplayName ?: friendFeedEntry.friendDisplayName!!.split("|").lastOrNull() ?: "unknown" - conversationAction(true, conversationId, if (friendFeedEntry.feedDisplayName != null) "USERCREATEDGROUP" else "ONEONONE") - + runCatching { + conversationAction(true, conversationId, if (friendFeedEntry.feedDisplayName != null) "USERCREATEDGROUP" else "ONEONONE") + } + logDialog(context.translation.format("chat_export.exporting_message", "conversation" to conversationName)) val foundMessages = fetchMessagesPaginated(conversationId, Long.MAX_VALUE).toMutableList()