feat: Add accountUsername to ChatsListScreen for improved user identification
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user