improving the unread messages counter badge

This commit is contained in:
tibbi 2020-07-27 22:37:11 +02:00
parent f511f35df0
commit 2e0d6a877d
6 changed files with 18 additions and 22 deletions

View file

@ -37,6 +37,7 @@ class SmsReceiver : BroadcastReceiver() {
ensureBackgroundThread {
val conversation = context.getConversations(threadId).firstOrNull() ?: return@ensureBackgroundThread
context.conversationsDB.insertOrUpdate(conversation)
context.updateUnreadCountBadge(context.conversationsDB.getUnreadConversations())
}
}
}