Выравнивание аватарок и онлайн-индикатора iOS с desktop (Mantine v8)
This commit is contained in:
@@ -151,7 +151,7 @@ private extension ChatListSearchContent {
|
||||
let initials = isSelf ? "S" : RosettaColors.initials(
|
||||
name: user.title, publicKey: user.publicKey
|
||||
)
|
||||
let colorIdx = RosettaColors.avatarColorIndex(for: user.publicKey)
|
||||
let colorIdx = RosettaColors.avatarColorIndex(for: user.title, publicKey: user.publicKey)
|
||||
|
||||
return Button {
|
||||
onSelectRecent(user.username.isEmpty ? user.publicKey : user.username)
|
||||
@@ -207,7 +207,7 @@ private extension ChatListSearchContent {
|
||||
let initials = isSelf ? "S" : RosettaColors.initials(
|
||||
name: user.title, publicKey: user.publicKey
|
||||
)
|
||||
let colorIdx = RosettaColors.avatarColorIndex(for: user.publicKey)
|
||||
let colorIdx = RosettaColors.avatarColorIndex(for: user.title, publicKey: user.publicKey)
|
||||
|
||||
return Button {
|
||||
viewModel.addToRecent(user)
|
||||
|
||||
@@ -164,7 +164,7 @@ private struct ToolbarStoriesAvatar: View {
|
||||
let initials = RosettaColors.initials(
|
||||
name: SessionManager.shared.displayName, publicKey: pk
|
||||
)
|
||||
let colorIdx = RosettaColors.avatarColorIndex(for: pk)
|
||||
let colorIdx = RosettaColors.avatarColorIndex(for: SessionManager.shared.displayName, publicKey: pk)
|
||||
ZStack { AvatarView(initials: initials, colorIndex: colorIdx, size: 28) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user