feat: Update avatar color retrieval to use public key instead of name in UnlockScreen and ChatsListScreen

This commit is contained in:
k1ngsterr1
2026-01-09 04:30:01 +05:00
parent b63909eafd
commit e95bfc9de7
2 changed files with 4 additions and 4 deletions

View File

@@ -248,7 +248,7 @@ fun UnlockScreen(
) {
// Avatar
if (selectedAccount != null) {
val avatarColors = getAvatarColor(selectedAccount!!.name, isDarkTheme)
val avatarColors = getAvatarColor(selectedAccount!!.publicKey, isDarkTheme)
Box(
modifier = Modifier
.size(48.dp)
@@ -398,7 +398,7 @@ fun UnlockScreen(
verticalAlignment = Alignment.CenterVertically
) {
// Avatar
val avatarColors = getAvatarColor(account.name, isDarkTheme)
val avatarColors = getAvatarColor(account.publicKey, isDarkTheme)
Box(
modifier = Modifier
.size(40.dp)