feat: Update avatar color retrieval to use public key instead of name in UnlockScreen and ChatsListScreen
This commit is contained in:
@@ -342,7 +342,7 @@ fun ChatsListScreen(
|
||||
verticalAlignment = Alignment.Top
|
||||
) {
|
||||
// Avatar with public key
|
||||
val avatarColors = getAvatarColor(accountName, isDarkTheme)
|
||||
val avatarColors = getAvatarColor(accountPublicKey, isDarkTheme)
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.size(64.dp)
|
||||
@@ -888,7 +888,7 @@ fun ChatItem(
|
||||
val secondaryTextColor = if (isDarkTheme) Color(0xFF8E8E93) else Color(0xFF666666)
|
||||
val dividerColor = if (isDarkTheme) Color(0xFF3A3A3A) else Color(0xFFE8E8E8)
|
||||
|
||||
val avatarColors = getAvatarColor(chat.name, isDarkTheme)
|
||||
val avatarColors = getAvatarColor(chat.publicKey, isDarkTheme)
|
||||
val avatarText = getAvatarText(chat.publicKey)
|
||||
|
||||
Column {
|
||||
|
||||
Reference in New Issue
Block a user