fixup! Message bubbles

This commit is contained in:
2026-04-23 22:08:52 +03:00
parent 414eeae4f6
commit 06b5ce326c
@@ -314,7 +314,7 @@ private fun buildTimelineItems(
timestampMs != null &&
timestampMs - previousMessage.timestampMs <= MESSAGE_GROUP_WINDOW_MS
if (groupedWithPrevious && previousMessage != null && lastMessageIndex != null) {
if (groupedWithPrevious) {
items[lastMessageIndex] = previousMessage.copy(showTimestamp = false)
}
@@ -391,7 +391,10 @@ private fun SystemEventRow(item: SystemTimelineItem) {
@Composable
private fun MessageRow(item: MessageTimelineItem) {
val bubbleColor = MaterialTheme.colorScheme.surfaceVariant
val bubbleColor = if (item.senderId != client!!.userId.full)
MaterialTheme.colorScheme.surfaceContainer
else
MaterialTheme.colorScheme.primaryContainer
val bubbleTextColor = MaterialTheme.colorScheme.onSurfaceVariant
Box(