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