Bugfix: Must use toAddress instead of addressInKeysFile if toLabel is blank when receiving message
This commit is contained in:
parent
1a7d21d000
commit
ab4a5da28a
|
@ -276,7 +276,7 @@ if __name__ == "__main__":
|
|||
print 'Ripe digest that we will encode in the address:', ripe.digest().encode('hex')
|
||||
returnedAddress = encodeAddress(addressVersionNumber,streamNumber,ripe.digest())
|
||||
print 'Encoded address:', returnedAddress
|
||||
status,addressVersionNumber,streamNumber,data = decodeAddress(returnedAddress)
|
||||
status,addressVersionNumber,streamNumber,data = decodeAddress("oriDZJ7VAEjphwQmt7fACFqZJVwds26vW")
|
||||
print '\nAfter decoding address:'
|
||||
print 'Status:', status
|
||||
print 'addressVersionNumber', addressVersionNumber
|
||||
|
|
|
@ -1072,7 +1072,7 @@ class receiveDataThread(threading.Thread):
|
|||
|
||||
toLabel = shared.config.get(toAddress, 'label')
|
||||
if toLabel == '':
|
||||
toLabel = addressInKeysFile
|
||||
toLabel = toAddress
|
||||
|
||||
if messageEncodingType == 2:
|
||||
bodyPositionIndex = string.find(message,'\nBody:')
|
||||
|
|
Reference in New Issue
Block a user