diff --git a/android/CHANGELOG.md b/android/CHANGELOG.md index ef8e737..95c7956 100644 --- a/android/CHANGELOG.md +++ b/android/CHANGELOG.md @@ -521,3 +521,7 @@ - Bound chats top bar title to realtime state: - shows `Connecting...` while reconnect/initial connect is in progress, - shows regular page title once connected. + +### Step 84 - Chats list preview icon policy cleanup +- Updated chat last-message preview text to remove emoji prefixes. +- Switched media-type preview prefixes to plain text labels (`Photo`, `Video`, `Voice`, etc.) to match Material-icons-only UI policy. diff --git a/android/app/src/main/java/ru/daemonlord/messenger/ui/chats/ChatListScreen.kt b/android/app/src/main/java/ru/daemonlord/messenger/ui/chats/ChatListScreen.kt index e7d5892..0bead12 100644 --- a/android/app/src/main/java/ru/daemonlord/messenger/ui/chats/ChatListScreen.kt +++ b/android/app/src/main/java/ru/daemonlord/messenger/ui/chats/ChatListScreen.kt @@ -716,22 +716,22 @@ private fun CenterState( private fun ChatItem.previewText(): String { val raw = lastMessageText.orEmpty().trim() val prefix = when (lastMessageType) { - "image" -> "\uD83D\uDDBC" - "video" -> "\uD83C\uDFA5" - "audio" -> "\uD83C\uDFB5" - "voice" -> "\uD83C\uDFA4" - "file" -> "\uD83D\uDCCE" - "circle_video" -> "\u25EF" + "image" -> "Photo" + "video" -> "Video" + "audio" -> "Audio" + "voice" -> "Voice" + "file" -> "File" + "circle_video" -> "Video message" else -> "" } - if (raw.isNotEmpty()) return if (prefix.isBlank()) raw else "$prefix $raw" + if (raw.isNotEmpty()) return if (prefix.isBlank()) raw else "$prefix: $raw" return when (lastMessageType) { - "image" -> "\uD83D\uDDBC Photo" - "video" -> "\uD83C\uDFA5 Video" - "audio" -> "\uD83C\uDFB5 Audio" - "voice" -> "\uD83C\uDFA4 Voice message" - "file" -> "\uD83D\uDCCE File" - "circle_video" -> "\u25EF Video message" + "image" -> "Photo" + "video" -> "Video" + "audio" -> "Audio" + "voice" -> "Voice message" + "file" -> "File" + "circle_video" -> "Video message" null, "text" -> "" else -> "Media" }