mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 19:58:57 +03:00
better code (ganfra's review)
This commit is contained in:
parent
56e0680398
commit
285da114e7
1 changed files with 4 additions and 4 deletions
|
@ -56,13 +56,13 @@ data class TimelineEvent(
|
|||
|
||||
fun getDisambiguatedDisplayName(): String {
|
||||
return if (isUniqueDisplayName) {
|
||||
senderName ?: root.senderId
|
||||
senderName
|
||||
} else {
|
||||
senderName?.let {
|
||||
it + " (" + root.senderId + ")"
|
||||
senderName?.let { name ->
|
||||
"$name (${root.senderId})"
|
||||
}
|
||||
?: root.senderId
|
||||
}
|
||||
?: root.senderId
|
||||
?: ""
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue