mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-25 13:38:59 +01:00
refresh SMS read status first, then MMS
This commit is contained in:
parent
22b6040a86
commit
838db92fee
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user