From c580da5dd10919dd70b200cb86fcfe4db52d471a Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Thu, 20 May 2021 13:35:43 +1000 Subject: [PATCH] Fix crash --- .../thoughtcrime/securesms/loki/activities/HomeActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/loki/activities/HomeActivity.kt b/app/src/main/java/org/thoughtcrime/securesms/loki/activities/HomeActivity.kt index 8bf1b5f4c0..b5c02f6bd7 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/loki/activities/HomeActivity.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/loki/activities/HomeActivity.kt @@ -347,7 +347,9 @@ class HomeActivity : PassphraseRequiredActionBarActivity(), apiDB.removeLastDeletionServerID(v2OpenGroup.room, v2OpenGroup.server) OpenGroupManager.delete(v2OpenGroup.server, v2OpenGroup.room, this@HomeActivity) } else { - threadDB.deleteConversation(threadID) + ThreadUtils.queue { + threadDB.deleteConversation(threadID) + } } // Update the badge count ApplicationContext.getInstance(context).messageNotifier.updateNotification(context)