improving the unread messages counter badge
This commit is contained in:
parent
f511f35df0
commit
2e0d6a877d
6 changed files with 18 additions and 22 deletions
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue