fixed unread trash message listing issue

This commit is contained in:
navjot 2020-10-08 20:34:23 +05:30
parent 6b65113bb4
commit 263711a4d3
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C

View File

@ -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)