Click to download avatar for unaccepted conversations

This commit is contained in:
yash-signal
2025-03-26 13:27:04 -07:00
committed by GitHub
parent 6c5047ba3e
commit 7cf26c5e25
100 changed files with 730 additions and 544 deletions

View File

@@ -30,9 +30,11 @@ type PeekedParticipantType = Pick<
export type PropsType = {
conversation: Pick<
CallingConversationType,
| 'avatarPlaceholderGradient'
| 'acceptedMessageRequest'
| 'avatarUrl'
| 'color'
| 'hasAvatar'
| 'isMe'
| 'phoneNumber'
| 'profileName'
@@ -41,7 +43,6 @@ export type PropsType = {
| 'systemNickname'
| 'title'
| 'type'
| 'unblurredAvatarUrl'
>;
i18n: LocalizerType;
me: Pick<ConversationType, 'id' | 'serviceId'>;
@@ -216,19 +217,18 @@ export function CallingPreCallInfo({
return (
<div className="module-CallingPreCallInfo">
<Avatar
avatarPlaceholderGradient={conversation.avatarPlaceholderGradient}
avatarUrl={conversation.avatarUrl}
badge={undefined}
color={conversation.color}
acceptedMessageRequest={conversation.acceptedMessageRequest}
conversationType={conversation.type}
isMe={conversation.isMe}
hasAvatar={conversation.hasAvatar}
noteToSelf={false}
phoneNumber={conversation.phoneNumber}
profileName={conversation.profileName}
sharedGroupNames={conversation.sharedGroupNames}
size={AvatarSize.SIXTY_FOUR}
title={conversation.title}
unblurredAvatarUrl={conversation.unblurredAvatarUrl}
i18n={i18n}
/>
<div className="module-CallingPreCallInfo__title">