add handling for storing sent messages

This commit is contained in:
tibbi 2020-04-05 19:12:02 +02:00
parent 420a88c74c
commit e1f1583b17
6 changed files with 59 additions and 8 deletions

View file

@ -38,7 +38,9 @@ class SmsReceiver : BroadcastReceiver() {
val body = it.messageBody
val date = it.timestampMillis
val threadId = context.getThreadId(address)
context.insertNewSMS(address, subject, body, date, threadId)
val type = Telephony.Sms.MESSAGE_TYPE_INBOX
val read = 0
context.insertNewSMS(address, subject, body, date, read, threadId, type)
showNotification(context, address, body, threadId.toInt())
}