really fix crashing at received MMS messages

This commit is contained in:
tibbi 2020-09-23 14:32:59 +02:00
parent 41966e53ab
commit 4668629b30

View File

@ -37,8 +37,8 @@ class MmsReceiver : com.klinker.android.send_message.MmsReceivedReceiver() {
val conversation = context.getConversations(mms.thread.toLong()).firstOrNull() ?: return@post
ensureBackgroundThread {
context.conversationsDB.insertOrUpdate(conversation)
context.updateUnreadCountBadge(context.conversationsDB.getUnreadConversations())
}
context.updateUnreadCountBadge(context.conversationsDB.getUnreadConversations())
}
}
}