mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-08-08 06:46:11 +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)) {
|
||||
// The sender's name heads the first bubble of their run, like classic group
|
||||
// messengers, instead of floating above it. Continuation bubbles skip it.
|
||||
if (showSender) {
|
||||
// messengers, instead of floating above it. Own bubbles never show a name —
|
||||
// the end side is attribution enough. Continuation bubbles skip it too.
|
||||
if (showSender && !isSelf) {
|
||||
AnnotatedClickableText(
|
||||
text = senderText,
|
||||
annotationTags = listOf("nickname_click"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user