mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Restrict message attachments shown in gallery & lightbox
This commit is contained in:
@@ -3498,12 +3498,12 @@ function getAdjacentMessagesByConversation(
|
||||
}
|
||||
${
|
||||
requireVisualMediaAttachments
|
||||
? sqlFragment`hasVisualMediaAttachments IS 1 AND`
|
||||
? sqlFragment`hasVisualMediaAttachments IS 1 AND isViewOnce IS 0 AND`
|
||||
: sqlFragment``
|
||||
}
|
||||
${
|
||||
requireFileAttachments
|
||||
? sqlFragment`hasFileAttachments IS 1 AND`
|
||||
? sqlFragment`hasFileAttachments IS 1 AND isViewOnce IS 0 AND`
|
||||
: sqlFragment``
|
||||
}
|
||||
isStory IS 0 AND
|
||||
|
||||
Reference in New Issue
Block a user