feat: Add accountUsername to ChatsListScreen for improved user identification

This commit is contained in:
k1ngsterr1
2026-01-22 00:41:53 +05:00
parent 6ad539e90e
commit 7cdd43402d
2 changed files with 4 additions and 2 deletions

View File

@@ -490,6 +490,7 @@ fun MainScreen(
ChatsListScreen( ChatsListScreen(
isDarkTheme = isDarkTheme, isDarkTheme = isDarkTheme,
accountName = accountName, accountName = accountName,
accountUsername = accountUsername,
accountPhone = accountPhone, accountPhone = accountPhone,
accountPublicKey = accountPublicKey, accountPublicKey = accountPublicKey,
accountPrivateKey = accountPrivateKey, accountPrivateKey = accountPrivateKey,

View File

@@ -130,6 +130,7 @@ fun getAvatarText(publicKey: String): String {
fun ChatsListScreen( fun ChatsListScreen(
isDarkTheme: Boolean, isDarkTheme: Boolean,
accountName: String, accountName: String,
accountUsername: String,
accountPhone: String, accountPhone: String,
accountPublicKey: String, accountPublicKey: String,
accountPrivateKey: String = "", accountPrivateKey: String = "",
@@ -562,10 +563,10 @@ fun ChatsListScreen(
) )
// Username display // Username display
if (accountName.isNotEmpty()) { if (accountUsername.isNotEmpty()) {
Text( Text(
text = text =
"@$accountName", "@$accountUsername",
fontSize = 13.sp, fontSize = 13.sp,
color = color =
Color.White Color.White