From 574bf9061818791f683c27a62d5d7bbc4e8f7325 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 10 Jan 2023 14:33:52 -0500 Subject: [PATCH] fix(message_persistence): don't return reply data of deleted messages --- VERSION | 2 +- protocol/message_persistence.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index f34340fc2..368ee87c1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.119.0 +0.119.1 diff --git a/protocol/message_persistence.go b/protocol/message_persistence.go index 915f0f720..f65a381b0 100644 --- a/protocol/message_persistence.go +++ b/protocol/message_persistence.go @@ -16,7 +16,7 @@ var basicMessagesSelectQuery = ` SELECT %s %s FROM user_messages m1 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 ON m1.source = c.id LEFT JOIN discord_messages dm