Merge branch 'master' into add-simple-characters
This commit is contained in:
commit
80ffc85ace
4 changed files with 40 additions and 0 deletions
|
|
@ -775,3 +775,15 @@ fun Context.removeDiacriticsIfNeeded(text: String): String {
|
|||
|
||||
return msg
|
||||
}
|
||||
|
||||
fun Context.updateLastConversationMessage(threadId: Long) {
|
||||
val uri = Threads.CONTENT_URI
|
||||
val selection = "${Threads._ID} = ?"
|
||||
val selectionArgs = arrayOf(threadId.toString())
|
||||
try {
|
||||
contentResolver.delete(uri, selection, selectionArgs)
|
||||
val newConversation = getConversations(threadId)[0]
|
||||
conversationsDB.insertOrUpdate(newConversation)
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue