From c6d45dd394b7ff39cc3120f4b4cc915d16a377bf Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Tue, 15 Nov 2016 17:07:53 +0100 Subject: [PATCH] Encoding when sending to self - when sending to self, it always used encoding 2 when saving into the inbox. Now uses the one that's currently selected --- src/class_singleWorker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index 377f900b..bab159af 100644 --- a/src/class_singleWorker.py +++ b/src/class_singleWorker.py @@ -841,7 +841,7 @@ class singleWorker(threading.Thread, StoppableThread): if shared.config.has_section(toaddress): sigHash = hashlib.sha512(hashlib.sha512(signature).digest()).digest()[32:] # Used to detect and ignore duplicate messages in our inbox t = (inventoryHash, toaddress, fromaddress, subject, int( - time.time()), message, 'inbox', 2, 0, sigHash) + time.time()), message, 'inbox', encoding, 0, sigHash) helper_inbox.insert(t) shared.UISignalQueue.put(('displayNewInboxMessage', (