updating commons

This commit is contained in:
tibbi 2022-02-07 11:45:59 +01:00
parent 47cba56e31
commit cc04594d31
7 changed files with 8 additions and 8 deletions

View file

@ -669,7 +669,7 @@ fun Context.getThreadId(addresses: Set<String>): Long {
}
fun Context.showReceivedMessageNotification(address: String, body: String, threadId: Long, bitmap: Bitmap?) {
val privateCursor = getMyContactsCursor(false, true)?.loadInBackground()
val privateCursor = getMyContactsCursor(false, true)
ensureBackgroundThread {
val senderName = getNameFromAddress(address, privateCursor)
@ -689,7 +689,7 @@ fun Context.getNameFromAddress(address: String, privateCursor: Cursor?): String
}
fun Context.getContactFromAddress(address: String, callback: ((contact: SimpleContact?) -> Unit)) {
val privateCursor = getMyContactsCursor(false, true)?.loadInBackground()
val privateCursor = getMyContactsCursor(false, true)
SimpleContactsHelper(this).getAvailableContacts(false) {
val contact = it.firstOrNull { it.doesHavePhoneNumber(address) }
if (contact == null) {