Fix blurred avatars in message details

This commit is contained in:
Evan Hahn 2021-05-04 18:19:36 -05:00 committed by GitHub
parent c5c667ab1b
commit 7c2f233384
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ import { assert } from '../../util/assert';
export type Contact = {
status: MessageStatusType | null;
acceptedMessageRequest?: boolean;
title: string;
phoneNumber?: string;
name?: string;
@ -28,7 +29,9 @@ export type Contact = {
avatarPath?: string;
color?: ColorType;
isOutgoingKeyError: boolean;
sharedGroupNames?: Array<string>;
isUnidentifiedDelivery: boolean;
unblurredAvatarPath?: string;
errors?: Array<Error>;
@ -89,16 +92,20 @@ export class MessageDetail extends React.Component<Props> {
public renderAvatar(contact: Contact): JSX.Element {
const { i18n } = this.props;
const {
acceptedMessageRequest,
avatarPath,
color,
phoneNumber,
name,
phoneNumber,
profileName,
sharedGroupNames,
title,
unblurredAvatarPath,
} = contact;
return (
<Avatar
acceptedMessageRequest={acceptedMessageRequest}
avatarPath={avatarPath}
color={color}
conversationType="direct"
@ -107,7 +114,9 @@ export class MessageDetail extends React.Component<Props> {
phoneNumber={phoneNumber}
profileName={profileName}
title={title}
sharedGroupNames={sharedGroupNames}
size={52}
unblurredAvatarPath={unblurredAvatarPath}
/>
);
}