mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-17 04:00:35 +01:00
Merge pull request #354 from pavelpoley/fix/sending-glitch
Fix "sending..." shown at opening a conversation
This commit is contained in:
commit
2b0b802175
@ -43,7 +43,15 @@ class SmsStatusSentReceiver : SentReceiver() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context.updateMessageType(messageId, type)
|
context.updateMessageType(messageId, type)
|
||||||
context.messagesDB.updateType(messageId, type)
|
val updated = context.messagesDB.updateType(messageId, type)
|
||||||
|
if (updated == 0) {
|
||||||
|
Handler(Looper.getMainLooper()).postDelayed({
|
||||||
|
ensureBackgroundThread {
|
||||||
|
context.messagesDB.updateType(messageId, type)
|
||||||
|
}
|
||||||
|
}, 2000)
|
||||||
|
}
|
||||||
|
|
||||||
refreshMessages()
|
refreshMessages()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user