feat: enhance forwarded messages display by enabling link support

This commit is contained in:
2026-02-12 08:15:11 +05:00
parent 6f195f4d09
commit f7ece6055e
7 changed files with 564 additions and 214 deletions

View File

@@ -172,7 +172,8 @@ fun OtherProfileScreen(
avatarRepository: AvatarRepository? = null,
currentUserPublicKey: String = "",
currentUserPrivateKey: String = "",
backgroundBlurColorId: String = "avatar"
backgroundBlurColorId: String = "avatar",
onWriteMessage: (SearchUser) -> Unit = {}
) {
var isBlocked by remember { mutableStateOf(false) }
var showAvatarMenu by remember { mutableStateOf(false) }
@@ -541,6 +542,47 @@ fun OtherProfileScreen(
Spacer(modifier = Modifier.height(12.dp))
// ═══════════════════════════════════════════════════════════
// ✉️ WRITE MESSAGE BUTTON
// ═══════════════════════════════════════════════════════════
Box(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp)
) {
Button(
onClick = { onWriteMessage(user) },
modifier = Modifier
.fillMaxWidth()
.height(48.dp),
shape = RoundedCornerShape(12.dp),
colors = ButtonDefaults.buttonColors(
containerColor = PrimaryBlue,
contentColor = Color.White
),
elevation = ButtonDefaults.buttonElevation(
defaultElevation = 0.dp,
pressedElevation = 0.dp
)
) {
Icon(
TablerIcons.MessageCircle2,
contentDescription = null,
modifier = Modifier.size(20.dp),
tint = Color.White
)
Spacer(modifier = Modifier.width(8.dp))
Text(
text = "Write Message",
fontSize = 16.sp,
fontWeight = FontWeight.SemiBold,
color = Color.White
)
}
}
Spacer(modifier = Modifier.height(16.dp))
// ═══════════════════════════════════════════════════════════
// 📚 SHARED CONTENT
// ═══════════════════════════════════════════════════════════