From 263711a4d382e79d5390684e82def3930739505f Mon Sep 17 00:00:00 2001 From: navjot Date: Thu, 8 Oct 2020 20:34:23 +0530 Subject: [PATCH] fixed unread trash message listing issue --- src/bitmessageqt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 2f1a6e7f..8a3b2510 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -3151,7 +3151,7 @@ class MyForm(settingsmixin.SMainWindow): idCount = len(inventoryHashesToTrash) sqlExecuteChunked( ("DELETE FROM inbox" if folder == "trash" or shifted else - "UPDATE inbox SET folder='trash'") + + "UPDATE inbox SET folder='trash', read=1") + " WHERE msgid IN ({0})", idCount, *inventoryHashesToTrash) tableWidget.selectRow(0 if currentRow == 0 else currentRow - 1) tableWidget.setUpdatesEnabled(True)