mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-18 13:49:39 +01:00
Relax document requirements for media gallery
This commit is contained in:
@@ -5583,8 +5583,6 @@ function getSortedMedia(
|
||||
// see 'isFile' in ts/util/Attachment.std.ts
|
||||
contentFilter = sqlFragment`
|
||||
message_attachments.flags IS NOT ${VOICE_MESSAGE} AND
|
||||
message_attachments.contentType IS NOT NULL AND
|
||||
message_attachments.contentType IS NOT '' AND
|
||||
message_attachments.contentType IS NOT 'text/x-signal-plain' AND
|
||||
message_attachments.contentType NOT LIKE 'audio/%' AND
|
||||
message_attachments.contentType NOT LIKE 'image/%' AND
|
||||
|
||||
@@ -542,10 +542,6 @@ export const isVisualMedia = (attachment: AttachmentType): boolean => {
|
||||
export const isFile = (attachment: AttachmentType): boolean => {
|
||||
const { contentType } = attachment;
|
||||
|
||||
if (isUndefined(contentType)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isVisualMedia(attachment)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user