diff --git a/app/src/main/kotlin/com/wire/android/ui/home/conversations/messagedetails/MessageDetailsScreen.kt b/app/src/main/kotlin/com/wire/android/ui/home/conversations/messagedetails/MessageDetailsScreen.kt index 2078b36806e..a8d21c17f6f 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/conversations/messagedetails/MessageDetailsScreen.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/conversations/messagedetails/MessageDetailsScreen.kt @@ -180,8 +180,9 @@ private fun MessageDetailsScreenContent( } } -sealed class MessageDetailsTabItem(@StringRes val titleResId: Int, open val count: Int) : TabItem { - override val title: UIText = UIText.StringResource(titleResId) - data class Reactions(override val count: Int) : MessageDetailsTabItem(R.string.message_details_reactions_tab, count) - data class ReadReceipts(override val count: Int) : MessageDetailsTabItem(R.string.message_details_read_receipts_tab, count) +sealed class MessageDetailsTabItem(@StringRes val titleResId: Int, argument: String) : TabItem { + override val title: UIText = UIText.StringResource(titleResId, argument) + + data class Reactions(val count: Int) : MessageDetailsTabItem(R.string.message_details_reactions_tab, "$count") + data class ReadReceipts(val count: Int) : MessageDetailsTabItem(R.string.message_details_read_receipts_tab, "$count") }