Manual download of attachments with no blurHash

This commit is contained in:
Josh Perez 2021-02-11 20:50:11 -05:00 committed by GitHub
parent ed786898fb
commit 34285054f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 117 additions and 32 deletions

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { LocalizerType } from '../../types/Util';
import { LocalizerType, ThemeType } from '../../types/Util';
import {
Message,
@ -126,6 +126,7 @@ type PropsLocalType = {
selectMessage: (messageId: string, conversationId: string) => unknown;
renderContact: SmartContactRendererType;
i18n: LocalizerType;
theme?: ThemeType;
};
type PropsActionsType = MessageActionsType &
@ -145,6 +146,7 @@ export class TimelineItem extends React.PureComponent<PropsType> {
isSelected,
item,
i18n,
theme,
messageSizeChanged,
renderContact,
returnToActiveCall,
@ -159,7 +161,9 @@ export class TimelineItem extends React.PureComponent<PropsType> {
}
if (item.type === 'message') {
return <Message {...this.props} {...item.data} i18n={i18n} />;
return (
<Message {...this.props} {...item.data} i18n={i18n} theme={theme} />
);
}
let notification;