fix a glitch at setting the received sms time in the future

This commit is contained in:
tibbi 2020-05-01 00:12:22 +02:00
parent 4512a9a8ff
commit 6db8d2a2d3

View File

@ -25,7 +25,7 @@ class SmsReceiver : BroadcastReceiver() {
address = it.originatingAddress ?: ""
subject = it.pseudoSubject
body += it.messageBody
date = it.timestampMillis
date = Math.min(it.timestampMillis, System.currentTimeMillis())
threadId = context.getThreadId(address)
}