feat: Bump version to 1.0.11, add ConnectionLogsScreen, and enhance message synchronization logic

This commit is contained in:
2026-02-27 02:43:30 +05:00
parent 829e19364a
commit 2da2c6ab36
9 changed files with 338 additions and 102 deletions

View File

@@ -1149,21 +1149,6 @@ fun ChatsListScreen(
}
)
// 🔄 Sync logs
DrawerMenuItemEnhanced(
painter = painterResource(id = R.drawable.files_document),
text = "Sync Logs",
iconColor = menuIconColor,
textColor = menuTextColor,
onClick = {
scope.launch {
drawerState.close()
kotlinx.coroutines.delay(100)
showSduLogs = true
}
}
)
}
// ═══════════════════════════════════════════════════════════

View File

@@ -3,7 +3,7 @@ package com.rosetta.messenger.ui.chats
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.*
@@ -180,7 +180,7 @@ fun ConnectionLogsScreen(
.padding(horizontal = 8.dp, vertical = 4.dp),
verticalArrangement = Arrangement.spacedBy(2.dp)
) {
items(logs, key = { it.hashCode().toString() + logs.indexOf(it) }) { log ->
itemsIndexed(logs, key = { index, _ -> index }) { _, log ->
val logColor = when {
"" in log || "FAILED" in log || "Error" in log || "error" in log -> Color(0xFFEF5350)
"" in log || "COMPLETE" in log || "SUCCESS" in log -> Color(0xFF4CAF50)