diff --git a/presentation/src/main/java/feature/conversations/ConversationsAdapter.kt b/presentation/src/main/java/feature/conversations/ConversationsAdapter.kt index 78a60758..f9419e22 100644 --- a/presentation/src/main/java/feature/conversations/ConversationsAdapter.kt +++ b/presentation/src/main/java/feature/conversations/ConversationsAdapter.kt @@ -76,7 +76,10 @@ class ConversationsAdapter @Inject constructor( view.avatars.contacts = conversation.recipients view.title.text = conversation.getTitle() view.date.text = dateFormatter.getConversationTimestamp(conversation.date) - view.snippet.text = if (conversation.me) "You: ${conversation.snippet}" else conversation.snippet + view.snippet.text = when(conversation.me) { + true -> context.getString(R.string.main_sender_you, conversation.snippet) + false -> conversation.snippet + } } override fun getItemId(index: Int): Long { diff --git a/presentation/src/main/res/values/strings.xml b/presentation/src/main/res/values/strings.xml index 3b35cb6b..7277b0a1 100644 --- a/presentation/src/main/res/values/strings.xml +++ b/presentation/src/main/res/values/strings.xml @@ -43,6 +43,7 @@ Save image Optimizing database, this might take a minute… + You: %s Write a message…