Messages: @celestora had forgotten about existing of deleted messages for correspondencies sql file, so i fixed it in her place

This commit is contained in:
veselcraft 2022-10-23 12:38:51 +03:00
parent 944d338034
commit 7c516a8089
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -10,6 +10,8 @@ SELECT DISTINCT id, class FROM
sender_id = ? sender_id = ?
AND AND
sender_type = ? sender_type = ?
AND
deleted = 0
) UNION ( ) UNION (
SELECT SELECT
sender_id AS id, sender_id AS id,
@ -20,6 +22,8 @@ SELECT DISTINCT id, class FROM
recipient_id = ? recipient_id = ?
AND AND
recipient_type = ? recipient_type = ?
AND
deleted = 0
) )
ORDER BY ORDER BY
time time