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 = ?
AND
sender_type = ?
AND
deleted = 0
) UNION (
SELECT
sender_id AS id,
@ -20,6 +22,8 @@ SELECT DISTINCT id, class FROM
recipient_id = ?
AND
recipient_type = ?
AND
deleted = 0
)
ORDER BY
time