Use streams to download attachments directly to disk

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
Scott Nonnenberg 2023-10-30 09:24:28 -07:00 committed by GitHub
parent 2da49456c6
commit 99b2bc304e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 2297 additions and 356 deletions

View file

@ -12,9 +12,9 @@ import { Time } from '../Time';
import { useNowThatUpdatesEveryMinute } from '../../hooks/useNowThatUpdatesEveryMinute';
export type Props = {
deletedForEveryone?: boolean;
direction?: 'incoming' | 'outgoing';
i18n: LocalizerType;
isOutlineOnlyBubble?: boolean;
isRelativeTime?: boolean;
module?: string;
timestamp: number;
@ -24,10 +24,10 @@ export type Props = {
};
export function MessageTimestamp({
deletedForEveryone,
direction,
i18n,
isRelativeTime,
isOutlineOnlyBubble,
module,
timestamp,
withImageNoCaption,
@ -47,7 +47,7 @@ export function MessageTimestamp({
: null,
withImageNoCaption ? `${moduleName}--with-image-no-caption` : null,
withSticker ? `${moduleName}--with-sticker` : null,
deletedForEveryone ? `${moduleName}--deleted-for-everyone` : null
isOutlineOnlyBubble ? `${moduleName}--ouline-only-bubble` : null
)}
timestamp={timestamp}
>