mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
really fix crashing at received MMS messages
This commit is contained in:
@@ -37,8 +37,8 @@ class MmsReceiver : com.klinker.android.send_message.MmsReceivedReceiver() {
|
|||||||
val conversation = context.getConversations(mms.thread.toLong()).firstOrNull() ?: return@post
|
val conversation = context.getConversations(mms.thread.toLong()).firstOrNull() ?: return@post
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
context.conversationsDB.insertOrUpdate(conversation)
|
context.conversationsDB.insertOrUpdate(conversation)
|
||||||
|
context.updateUnreadCountBadge(context.conversationsDB.getUnreadConversations())
|
||||||
}
|
}
|
||||||
context.updateUnreadCountBadge(context.conversationsDB.getUnreadConversations())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user