refresh SMS read status first, then MMS

This commit is contained in:
tibbi 2020-06-18 11:27:46 +02:00
parent 22b6040a86
commit 838db92fee
1 changed files with 2 additions and 2 deletions

View File

@ -500,7 +500,7 @@ fun Context.markMessageRead(id: Int, isMMS: Boolean) {
}
fun Context.markThreadMessagesRead(threadId: Int) {
arrayOf(Mms.CONTENT_URI, Sms.CONTENT_URI).forEach { uri ->
arrayOf(Sms.CONTENT_URI, Mms.CONTENT_URI).forEach { uri ->
val contentValues = ContentValues().apply {
put(Sms.READ, 1)
put(Sms.SEEN, 1)
@ -512,7 +512,7 @@ fun Context.markThreadMessagesRead(threadId: Int) {
}
fun Context.markThreadMessagesUnread(threadId: Int) {
arrayOf(Mms.CONTENT_URI, Sms.CONTENT_URI).forEach { uri ->
arrayOf(Sms.CONTENT_URI, Mms.CONTENT_URI).forEach { uri ->
val contentValues = ContentValues().apply {
put(Sms.READ, 0)
put(Sms.SEEN, 0)