mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-31 01:29:30 +01:00
Update message in local db when using inline replies
This commit is contained in:
parent
35e9141888
commit
f1f27eeb9d
@ -39,7 +39,7 @@ class DirectReplyReceiver : BroadcastReceiver() {
|
|||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
try {
|
try {
|
||||||
context.sendMessage(body, listOf(address), subscriptionId, emptyList())
|
context.sendMessage(body, listOf(address), subscriptionId, emptyList())
|
||||||
val message = context.getMessages(threadId, getImageResolutions = false, includeScheduledMessages = false, limit = 1).firstOrNull()
|
val message = context.getMessages(threadId, getImageResolutions = false, includeScheduledMessages = false, limit = 1).lastOrNull()
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
context.messagesDB.insertOrUpdate(message)
|
context.messagesDB.insertOrUpdate(message)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user