mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 19:00:26 +01:00
Update verified icon.
This commit is contained in:
committed by
Greyson Parrelli
parent
ba06efe35a
commit
b74f04495e
@@ -367,8 +367,11 @@ class Recipient(
|
||||
/** The badge to feature on a recipient's avatar, if any. */
|
||||
val featuredBadge: Badge? = badges.firstOrNull()
|
||||
|
||||
/** A string filtering out banned emojis from the about text */
|
||||
val filteredAbout: String? by lazy { about?.filterNot { StringUtil.FILTERED_EMOJIS.contains(it) } }
|
||||
|
||||
/** A string combining the about emoji + text for displaying various places. */
|
||||
val combinedAboutAndEmoji: String? by lazy { listOf(aboutEmoji, about).filter { it.isNotNullOrBlank() }.joinToString(separator = " ").nullIfBlank() }
|
||||
val combinedAboutAndEmoji: String? by lazy { listOf(aboutEmoji, filteredAbout).filter { it.isNotNullOrBlank() }.joinToString(separator = " ").nullIfBlank() }
|
||||
|
||||
/** Whether or not we should blur the recipient's avatar when showing it in the chat list and other locations. */
|
||||
val shouldBlurAvatar: Boolean
|
||||
|
||||
@@ -96,7 +96,7 @@ class AboutSheet : ComposeBottomSheetDialogFragment() {
|
||||
displayName = recipient.get().getDisplayName(requireContext()),
|
||||
shortName = recipient.get().getShortDisplayName(requireContext()),
|
||||
profileName = recipient.get().profileName.toString(),
|
||||
about = recipient.get().about,
|
||||
about = recipient.get().filteredAbout,
|
||||
verified = verified,
|
||||
hasAvatar = recipient.get().profileAvatarFileDetails.hasFile(),
|
||||
recipientForAvatar = recipient.get(),
|
||||
@@ -220,7 +220,7 @@ private fun Content(
|
||||
|
||||
if (!model.isSelf && model.verified) {
|
||||
AboutRow(
|
||||
startIcon = painterResource(id = R.drawable.check),
|
||||
startIcon = painterResource(id = R.drawable.symbol_safety_number_24),
|
||||
text = stringResource(id = R.string.AboutSheet__verified),
|
||||
modifier = Modifier.align(alignment = Alignment.Start),
|
||||
onClick = onClickSignalConnections
|
||||
|
||||
Reference in New Issue
Block a user