mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Allow backfill for more undownloadable attachments
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// Copyright 2018 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
/* eslint-disable max-classes-per-file */
|
||||
|
||||
import moment from 'moment';
|
||||
import {
|
||||
@@ -46,6 +47,14 @@ const MIN_HEIGHT = 50;
|
||||
|
||||
export class AttachmentSizeError extends Error {}
|
||||
|
||||
// Used for downlaods
|
||||
|
||||
export class AttachmentPermanentlyUndownloadableError extends Error {
|
||||
constructor(message: string) {
|
||||
super(`AttachmentPermanentlyUndownloadableError: ${message}`);
|
||||
}
|
||||
}
|
||||
|
||||
type ScreenshotType = Omit<AttachmentType, 'size'> & {
|
||||
height: number;
|
||||
width: number;
|
||||
|
||||
Reference in New Issue
Block a user