Fix avatar color consistency

This commit is contained in:
yash-signal 2025-04-07 11:18:05 -05:00 committed by GitHub
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 { return {
...pick(convo, 'id', 'avatarUrl', 'title', 'hasAvatar'), ...pick(convo, 'id', 'avatarUrl', 'title', 'hasAvatar', 'color'),
memberships, memberships,
membersCount, membersCount,
disabledReason, disabledReason,

View file

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

View file

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