Do not try to download text attachments
This commit is contained in:
parent
0a0fabd2ca
commit
0f16ef5dd6
5 changed files with 6 additions and 7 deletions
|
@ -110,7 +110,6 @@ import {
|
|||
} from './messageReceiverEvents';
|
||||
import * as log from '../logging/log';
|
||||
import * as durations from '../util/durations';
|
||||
import { IMAGE_JPEG } from '../types/MIME';
|
||||
import { areArraysMatchingSets } from '../util/areArraysMatchingSets';
|
||||
import { generateBlurHash } from '../util/generateBlurHash';
|
||||
|
||||
|
@ -1803,8 +1802,7 @@ export default class MessageReceiver
|
|||
|
||||
if (msg.textAttachment) {
|
||||
attachments.push({
|
||||
contentType: IMAGE_JPEG,
|
||||
size: 0,
|
||||
size: msg.textAttachment.text?.length,
|
||||
textAttachment: msg.textAttachment,
|
||||
blurHash: generateBlurHash(
|
||||
(msg.textAttachment.color ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue