Show PM voice and video delivery status in both shared renderers
This commit is contained in:
1 parent
5092bdf9fe
commit
20322e7ecb
3 files changed
+18
-6
No files matched your search
+1
-2
@@ -245,7 +245,7 @@ private fun VoiceBubble(message: Message, textColor: Color, isActive: Boolean,
|
||||
color = ChatColors.Secondary
|
||||
)
|
||||
Text(
|
||||
formatTime(message.ts),
|
||||
listOf(formatTime(message.ts), message.deliveryStatus).filter { it.isNotEmpty() }.joinToString(" · "),
|
||||
fontSize = 11.sp,
|
||||
color = ChatColors.Secondary,
|
||||
modifier = Modifier.align(Alignment.CenterVertically).padding(start = 8.dp)
|
||||
@@ -293,7 +293,6 @@ private fun FileBubble(message: Message, textColor: Color, onDownload: (Message)
|
||||
}
|
||||
}
|
||||
|
||||
private val VIDEO_EXTENSIONS = setOf("mp4", "m4v", "mov", "webm", "3gp", "mkv", "avi", "ts", "mpg", "mpeg")
|
||||
|
||||
private fun isVideoMessage(message: Message): Boolean {
|
||||
return message.contentType.startsWith("video/")
|
||||
|
||||
Reference in new issue
Block a user