fix: shift the threadId filter line above the variant and sourceFilename lines

pull/646/head
Ryan Zhao 2 years ago
parent d0039e446e
commit bc16e3da4b

@ -268,9 +268,9 @@ public class MediaGalleryViewModel {
return SQL("""
\(attachment[.isVisualMedia]) = false AND
\(attachment[.isValid]) = true AND
\(interaction[.threadId]) = \(threadId) AND
\(attachment[.variant]) = \(Attachment.Variant.standard) AND
\(attachment[.sourceFilename]) <> 'session-audio-message' AND
\(interaction[.threadId]) = \(threadId)
\(attachment[.sourceFilename]) <> 'session-audio-message'
""")
}
}

Loading…
Cancel
Save