commit 3926235d57ed602af4c82ab236b32c64bef62efb
parent 7924d5a445180d2786cfc8ef9b6b1c6fc203b701
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Wed, 6 Sep 2023 23:02:42 +0200
fix(chat_exporter): enter conversation callback bug
Diffstat:
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
@@ -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()