fix: Show posting app name if app link is missing (#912)

Previous code had a bug/typo, which meant the app the user was posting
from was not shown if the app did not have an associated website. But
the bullet separating the parts of the text was still shown, resulting
in a spurious dangling bullet.
This commit is contained in:
Nik Clayton 2024-08-29 13:10:08 +02:00 committed by GitHub
parent 7a04ec86b2
commit 8d87005669
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -65,10 +65,9 @@ class StatusDetailedViewHolder(
}
}
app?.also { application ->
val (name, website) = application
app?.also { (name, website) ->
sb.append(metadataJoiner)
website?.also { sb.append(createClickableText(name, it)) ?: sb.append(name) }
website?.also { sb.append(createClickableText(name, it)) } ?: sb.append(name)
}
metaInfo.movementMethod = LinkMovementMethod.getInstance()