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
This commit is contained in:
Peter Šurda 2016-11-15 17:07:53 +01:00
parent fbc9886eda
commit c6d45dd394
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -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', (