mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-09-19 04:59:59 +00:00
feat(chat): never show our own nickname in bubbles mode
The end side and the author-colour wash already attribute own bubbles, so the @name heading on the first bubble of an own run was redundant. Received bubbles keep their sender names; matrix mode is unchanged.
This commit is contained in:
parent
d85401fb49
commit
bd5ae8702a
@ -960,8 +960,9 @@ private fun BubbleTextMessageLayout(
|
|||||||
) {
|
) {
|
||||||
Column(verticalArrangement = Arrangement.spacedBy(2.dp)) {
|
Column(verticalArrangement = Arrangement.spacedBy(2.dp)) {
|
||||||
// The sender's name heads the first bubble of their run, like classic group
|
// The sender's name heads the first bubble of their run, like classic group
|
||||||
// messengers, instead of floating above it. Continuation bubbles skip it.
|
// messengers, instead of floating above it. Own bubbles never show a name —
|
||||||
if (showSender) {
|
// the end side is attribution enough. Continuation bubbles skip it too.
|
||||||
|
if (showSender && !isSelf) {
|
||||||
AnnotatedClickableText(
|
AnnotatedClickableText(
|
||||||
text = senderText,
|
text = senderText,
|
||||||
annotationTags = listOf("nickname_click"),
|
annotationTags = listOf("nickname_click"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user