feat: add VerifiedBadge to ForwardDialogItem for enhanced user feedback
This commit is contained in:
@@ -27,6 +27,7 @@ import com.rosetta.messenger.data.ForwardManager
|
|||||||
import com.rosetta.messenger.repository.AvatarRepository
|
import com.rosetta.messenger.repository.AvatarRepository
|
||||||
import com.rosetta.messenger.ui.components.AppleEmojiText
|
import com.rosetta.messenger.ui.components.AppleEmojiText
|
||||||
import com.rosetta.messenger.ui.components.AvatarImage
|
import com.rosetta.messenger.ui.components.AvatarImage
|
||||||
|
import com.rosetta.messenger.ui.components.VerifiedBadge
|
||||||
import com.rosetta.messenger.ui.onboarding.PrimaryBlue
|
import com.rosetta.messenger.ui.onboarding.PrimaryBlue
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
@@ -279,14 +280,29 @@ private fun ForwardDialogItem(
|
|||||||
|
|
||||||
// Info
|
// Info
|
||||||
Column(modifier = Modifier.weight(1f)) {
|
Column(modifier = Modifier.weight(1f)) {
|
||||||
Text(
|
Row(
|
||||||
text = displayName,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
fontWeight = FontWeight.SemiBold,
|
horizontalArrangement = Arrangement.spacedBy(4.dp)
|
||||||
fontSize = 16.sp,
|
) {
|
||||||
color = textColor,
|
Text(
|
||||||
maxLines = 1,
|
text = displayName,
|
||||||
overflow = TextOverflow.Ellipsis
|
fontWeight = FontWeight.SemiBold,
|
||||||
)
|
fontSize = 16.sp,
|
||||||
|
color = textColor,
|
||||||
|
maxLines = 1,
|
||||||
|
overflow = TextOverflow.Ellipsis,
|
||||||
|
modifier = Modifier.weight(1f, fill = false)
|
||||||
|
)
|
||||||
|
|
||||||
|
// ✅ Verified badge
|
||||||
|
if (!isSavedMessages && dialog.verified > 0) {
|
||||||
|
VerifiedBadge(
|
||||||
|
verified = dialog.verified,
|
||||||
|
size = 16,
|
||||||
|
isDarkTheme = isDarkTheme
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(2.dp))
|
Spacer(modifier = Modifier.height(2.dp))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user