Skip to content

Commit

Permalink
fix: message details tab counter [WPB-8798] (#2914)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garzas authored Apr 19, 2024
1 parent 90f6c8d commit 3019bb9
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 3019bb9

Please sign in to comment.