better code (ganfra's review)
This commit is contained in:
parent
56e0680398
commit
285da114e7
|
@ -56,13 +56,13 @@ data class TimelineEvent(
|
||||||
|
|
||||||
fun getDisambiguatedDisplayName(): String {
|
fun getDisambiguatedDisplayName(): String {
|
||||||
return if (isUniqueDisplayName) {
|
return if (isUniqueDisplayName) {
|
||||||
senderName ?: root.senderId
|
senderName
|
||||||
} else {
|
} else {
|
||||||
senderName?.let {
|
senderName?.let { name ->
|
||||||
it + " (" + root.senderId + ")"
|
"$name (${root.senderId})"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?: root.senderId
|
?: root.senderId
|
||||||
}
|
|
||||||
?: ""
|
?: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue