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
master
Peter Šurda 6 years ago
parent fbc9886eda
commit c6d45dd394
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
  1. 2
      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', (

Loading…
Cancel
Save