Fix crash

This commit is contained in:
Niels Andriesse 2021-05-20 13:35:43 +10:00
parent c7d865fb57
commit c580da5dd1

View File

@ -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)