fix(message_persistence): don't return reply data of deleted messages
This commit is contained in:
parent
c4bf60b815
commit
574bf90618
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue