Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -863,9 +863,10 @@ private fun mediaMessageLabels(msgType: ChatMessage.MessageType): Pair<Int, Int>
else -> R.string.nc_sent_a_gif_you to R.string.nc_sent_a_gif
}

@Composable
private fun authorPrefix(chatMessage: ChatMessage, currentUser: User): String =
if (chatMessage.actorId == currentUser.userId) {
"You:"
stringResource(R.string.nc_formatted_message_you_prefix)
} else {
val name = chatMessage.actorDisplayName
if (!name.isNullOrBlank()) "$name:" else ""
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ How to translate with transifex:
<string name="nc_message_quote_cancel_reply">Cancel reply</string>
<!-- When translating to German, please use non-formal variant -->
<string name="nc_formatted_message_you">You: %1$s</string>
<!-- Author prefix shown before an attachment in the conversation list. When translating to German, please use non-formal variant -->
<string name="nc_formatted_message_you_prefix">You:</string>
<string name="nc_draft_prefix">Draft: %1$s</string>
<string name="nc_message_sent">Message sent</string>
<string name="nc_message_read">Message read</string>
Expand Down
Loading