fix #8, load some cached messages instantly
This commit is contained in:
parent
a013c110ec
commit
2b3df2719b
4 changed files with 39 additions and 16 deletions
|
|
@ -2,5 +2,8 @@ package com.simplemobiletools.smsmessenger.extensions
|
|||
|
||||
import android.text.TextUtils
|
||||
import com.simplemobiletools.commons.models.SimpleContact
|
||||
import com.simplemobiletools.smsmessenger.models.Conversation
|
||||
|
||||
fun ArrayList<SimpleContact>.getThreadTitle() = TextUtils.join(", ", map { it.name }.toTypedArray())
|
||||
|
||||
fun ArrayList<Conversation>.getHashToCompare() = map { it.getStringToCompare() }.hashCode()
|
||||
|
|
|
|||
|
|
@ -227,7 +227,6 @@ fun Context.getConversations(): ArrayList<Conversation> {
|
|||
}
|
||||
|
||||
conversations.sortByDescending { it.date }
|
||||
conversationsDB.insertAll(conversations)
|
||||
return conversations
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue