diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/buzz/BuzzImportRow.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/buzz/BuzzImportRow.kt
index f44ba08cde..3c65271fcd 100644
--- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/buzz/BuzzImportRow.kt
+++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/buzz/BuzzImportRow.kt
@@ -146,15 +146,20 @@ private fun BuzzImportRowContent(
if (onToggleStar != null) {
IconButton(onClick = onToggleStar) {
Icon(
- symbol = if (isStarred) MaterialSymbols.Star else MaterialSymbols.StarBorder,
- contentDescription = stringRes(if (isStarred) R.string.buzz_unstar else R.string.buzz_star),
+ symbol = MaterialSymbols.PushPin,
+ contentDescription = stringRes(if (isStarred) R.string.buzz_unpin else R.string.buzz_pin),
tint = if (isStarred) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.size(20.dp),
)
}
}
if (isAdded) {
- Row(verticalAlignment = Alignment.CenterVertically) {
+ // Match the OutlinedButton's trailing content padding so the label doesn't jam against
+ // the row edge (and doesn't jump horizontally) when Add flips to Added.
+ Row(
+ modifier = Modifier.padding(end = 12.dp),
+ verticalAlignment = Alignment.CenterVertically,
+ ) {
Icon(
symbol = MaterialSymbols.Check,
contentDescription = null,
diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chats/rooms/ChatroomHeaderCompose.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chats/rooms/ChatroomHeaderCompose.kt
index c625974664..a2dd7efc58 100644
--- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chats/rooms/ChatroomHeaderCompose.kt
+++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chats/rooms/ChatroomHeaderCompose.kt
@@ -864,7 +864,12 @@ private fun RowScope.LastMessagePreview(
val text =
when (preview) {
- is ChatPreview.Body -> preview.text
+ is ChatPreview.Body -> {
+ // Mark my own newest message with a "You:" prefix (like other messengers) so a
+ // 1:1 room's preview shows who spoke last instead of reading like the counterpart.
+ val sentByMe = lastMessage.author?.pubkeyHex == accountViewModel.account.signer.pubKey
+ if (sentByMe) stringRes(R.string.chat_preview_you_prefix, preview.text) else preview.text
+ }
ChatPreview.Decrypting -> stringRes(R.string.chat_preview_decrypting)
ChatPreview.Undecryptable -> stringRes(R.string.could_not_decrypt_the_message)
ChatPreview.Missing -> stringRes(R.string.referenced_event_not_found)
diff --git a/amethyst/src/main/res/values-hi-rIN/strings.xml b/amethyst/src/main/res/values-hi-rIN/strings.xml
index ea90e9db34..a35953c4e8 100644
--- a/amethyst/src/main/res/values-hi-rIN/strings.xml
+++ b/amethyst/src/main/res/values-hi-rIN/strings.xml
@@ -3154,8 +3154,8 @@
अनुकृति
आमन्त्रण बनाने में असफल
ठीक
- प्रणाली ताराचिह्नित करें
- प्रणाली ताराचिह्न हटाएँ
+ चैनल पिन करें
+ चैनल अनपिन करें
कोई संवाद नहीं अब तक
- देखें %1$d और संवाद
diff --git a/amethyst/src/main/res/values/strings.xml b/amethyst/src/main/res/values/strings.xml
index 6f382c3170..f2194d3ce7 100644
--- a/amethyst/src/main/res/values/strings.xml
+++ b/amethyst/src/main/res/values/strings.xml
@@ -31,6 +31,8 @@
Could not decrypt the message
Decrypting…
+
+ You: %1$s
Group Picture
Explicit Content
Relay Notice
@@ -3486,8 +3488,8 @@
Copy
Couldn\'t create invite
OK
- Star channel
- Unstar channel
+ Pin channel
+ Unpin channel
No conversations yet
- See %1$d more conversation