fix(message_persistence): don't return reply data of deleted messages

This commit is contained in:
Jonathan Rainville 2023-01-10 14:33:52 -05:00
parent c4bf60b815
commit 574bf90618
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
0.119.0 0.119.1

View File

@ -16,7 +16,7 @@ var basicMessagesSelectQuery = `
SELECT %s %s SELECT %s %s
FROM user_messages m1 FROM user_messages m1
LEFT JOIN user_messages m2 LEFT JOIN user_messages m2
ON m1.response_to = m2.id ON m1.response_to = m2.id AND m2.deleted = 0
LEFT JOIN contacts c LEFT JOIN contacts c
ON m1.source = c.id ON m1.source = c.id
LEFT JOIN discord_messages dm LEFT JOIN discord_messages dm