@Composable public fun MessageReadStatusIcon(message: Message,isMessageRead: Boolean,modifier: Modifier = Modifier,) {val syncStatus = message.syncStatus when { isMessageRead -> { Icon( modifier = modifier, painter = painterResource(id = R.drawable.stream_compose_message_seen), contentDescription = null, tint = ChatTheme.colors.primaryAccent, ) } syncStatus == SyncStatus.SYNC_NEEDED || syncStatus == SyncStatus.AWAITING_ATTACHMENTS -> { Icon( modifier = modifier, painter = painterResource(id = R.drawable.stream_compose_ic_clock), contentDescription = null, tint = ChatTheme.colors.textLowEmphasis, ) } syncStatus == SyncStatus.COMPLETED -> { Icon( modifier = modifier, painter = painterResource(id = R.drawable.stream_compose_message_sent), contentDescription = null, tint = ChatTheme.colors.textLowEmphasis, ) } } }
Shows a delivery status indicator for a particular message.