From e1eb1f43cc6d1b67634265e6e26b90dd2f51e700 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Fri, 8 Jul 2022 15:16:14 +0530 Subject: [PATCH] Add delete query for trash box --- src/helper_inbox.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/helper_inbox.py b/src/helper_inbox.py index 654dd59d..2ed881bd 100644 --- a/src/helper_inbox.py +++ b/src/helper_inbox.py @@ -18,6 +18,11 @@ def trash(msgid): queues.UISignalQueue.put(('removeInboxRowByMsgid', msgid)) +def delete(ack_data): + """Delet""" + sqlExecute("DELETE FROM inbox WHERE msgid = ?", ack_data) + + def isMessageAlreadyInInbox(sigHash): """Check for previous instances of this message""" queryReturn = sqlQuery(