mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Improve conversation name retrieval
This commit is contained in:
@@ -13,7 +13,8 @@ open class Conversation : RealmObject() {
|
||||
fun getTitle(): String {
|
||||
var title = ""
|
||||
recipients.forEachIndexed { index, recipient ->
|
||||
title += recipient.contact?.name ?: recipient.address
|
||||
val name = recipient.contact?.name
|
||||
title += if (name.isNullOrBlank()) recipient.address else name
|
||||
if (index < recipients.size - 1) {
|
||||
title += ", "
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user