Fix avatar color consistency

This commit is contained in:
yash-signal 2025-04-07 11:18:05 -05:00 committed by GitHub
parent e9e3906371
commit cc4470bb6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 2 deletions

View file

@ -129,7 +129,7 @@ export function AddUserToAnotherGroupModal({
}
return {
...pick(convo, 'id', 'avatarUrl', 'title', 'hasAvatar'),
...pick(convo, 'id', 'avatarUrl', 'title', 'hasAvatar', 'color'),
memberships,
membersCount,
disabledReason,

View file

@ -16,7 +16,12 @@ export enum DisabledReason {
export type GroupListItemConversationType = Pick<
ConversationType,
'avatarPlaceholderGradient' | 'id' | 'title' | 'avatarUrl' | 'hasAvatar'
| 'avatarPlaceholderGradient'
| 'id'
| 'title'
| 'avatarUrl'
| 'hasAvatar'
| 'color'
> & {
disabledReason: DisabledReason | undefined;
membersCount: number;
@ -57,6 +62,7 @@ export function GroupListItem({
<Avatar
avatarPlaceholderGradient={group.avatarPlaceholderGradient}
avatarUrl={group.avatarUrl}
color={group.color}
conversationType="group"
hasAvatar={group.hasAvatar}
i18n={i18n}

View file

@ -72,6 +72,7 @@ export const SmartHeroRow = memo(function SmartHeroRow({
about,
acceptedMessageRequest,
avatarUrl,
color,
groupDescription,
hasAvatar,
isMe,
@ -95,6 +96,7 @@ export const SmartHeroRow = memo(function SmartHeroRow({
acceptedMessageRequest={acceptedMessageRequest}
avatarUrl={avatarUrl}
badge={badge}
color={color}
conversationType={type}
fromOrAddedByTrustedContact={fromOrAddedByTrustedContact}
groupDescription={groupDescription}