mentions with hashes, otherwise none

This commit is contained in:
callebtc
2025-08-28 16:52:21 +02:00
parent fbc569750b
commit 6cd91fe373
2 changed files with 73 additions and 4 deletions
@@ -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
)