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) apiDB.removeLastDeletionServerID(v2OpenGroup.room, v2OpenGroup.server)
OpenGroupManager.delete(v2OpenGroup.server, v2OpenGroup.room, this@HomeActivity) OpenGroupManager.delete(v2OpenGroup.server, v2OpenGroup.room, this@HomeActivity)
} else { } else {
threadDB.deleteConversation(threadID) ThreadUtils.queue {
threadDB.deleteConversation(threadID)
}
} }
// Update the badge count // Update the badge count
ApplicationContext.getInstance(context).messageNotifier.updateNotification(context) ApplicationContext.getInstance(context).messageNotifier.updateNotification(context)