mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 10:25:19 +00:00
mentions with hashes, otherwise none
This commit is contained in:
@@ -80,11 +80,11 @@ fun formatMessageAsAnnotatedString(
|
||||
builder.append(baseName)
|
||||
val nicknameEnd = builder.length
|
||||
|
||||
// Add click annotation for nickname (store full sender name with hash)
|
||||
// Add click annotation for nickname (store canonical sender name with hash if available)
|
||||
if (!isSelf) {
|
||||
builder.addStringAnnotation(
|
||||
tag = "nickname_click",
|
||||
annotation = message.sender, // Store full sender name with hash
|
||||
annotation = (message.originalSender ?: message.sender),
|
||||
start = nicknameStart,
|
||||
end = nicknameEnd
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user