feat: Add account verification status handling in MainScreen, ChatsListScreen, and ProfileScreen
This commit is contained in:
@@ -212,6 +212,7 @@ fun ChatsListScreen(
|
||||
isDarkTheme: Boolean,
|
||||
accountName: String,
|
||||
accountUsername: String,
|
||||
accountVerified: Int = 0,
|
||||
accountPhone: String,
|
||||
accountPublicKey: String,
|
||||
accountPrivateKey: String = "",
|
||||
@@ -864,7 +865,7 @@ fun ChatsListScreen(
|
||||
fontWeight = FontWeight.Bold,
|
||||
color = Color.White
|
||||
)
|
||||
if (isRosettaOfficial) {
|
||||
if (accountVerified > 0 || isRosettaOfficial) {
|
||||
Spacer(
|
||||
modifier =
|
||||
Modifier.width(
|
||||
@@ -872,7 +873,7 @@ fun ChatsListScreen(
|
||||
)
|
||||
)
|
||||
VerifiedBadge(
|
||||
verified = 1,
|
||||
verified = if (accountVerified > 0) accountVerified else 1,
|
||||
size = 15,
|
||||
badgeTint = Color(0xFFACD2F9)
|
||||
)
|
||||
@@ -1148,6 +1149,21 @@ 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
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
// ═══════════════════════════════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user