Restrict message attachments shown in gallery & lightbox

This commit is contained in:
trevor-signal
2025-07-01 13:14:28 -04:00
committed by GitHub
parent bcb1a614ea
commit 708a1bb51f
2 changed files with 11 additions and 2 deletions

View File

@@ -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