mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 10:47:46 +00:00
Reuse getSearchName
This commit is contained in:
parent
5ebde324c2
commit
b775b5aca9
@ -100,9 +100,7 @@ fun ContentView.bindModel(query: String?, model: GroupConversation) {
|
||||
|
||||
val groupRecipients = model.groupRecord.members.map { Recipient.from(binding.root.context, it, false) }
|
||||
|
||||
val membersString = groupRecipients.joinToString {
|
||||
it.name ?: truncateIdForDisplay(it.address.serialize())
|
||||
}
|
||||
val membersString = groupRecipients.joinToString(transform = Recipient::getSearchName)
|
||||
if (model.groupRecord.isClosedGroup) {
|
||||
binding.searchResultSubtitle.text = getHighlight(query, membersString)
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ import android.view.View
|
||||
import android.view.inputmethod.EditorInfo
|
||||
import android.view.inputmethod.InputMethodManager
|
||||
import android.widget.Toast
|
||||
import androidx.annotation.RequiresApi
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
|
Loading…
x
Reference in New Issue
Block a user