From ed16e1adb4a657ff948bb131f73aa094fe929bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BBerko?= Date: Fri, 19 Apr 2024 12:16:23 +0200 Subject: [PATCH] fix: message details tab counter --- .../conversations/messagedetails/MessageDetailsScreen.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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") }