removed global streamNumber

will be autoset I guess
This commit is contained in:
s3goat 2018-09-20 12:40:56 +02:00 committed by GitHub
parent b119de414a
commit 2849ae7641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -706,9 +706,12 @@ def handlech(c, stdscr):
if menutab == 7:
blackcur = len(blackcur)-1
redraw(stdscr)
def sendMessage(sender="", recv="", broadcast=None, subject="", body="", reply=False):
global streamNumber
streamNumber = 0
#global streamNumber
#streamNumber = 0
# 0 = Auto , 1 = stream 1 is the only supported stream currently
if sender == "":
return
@ -785,7 +788,8 @@ def sendMessage(sender="", recv="", broadcast=None, subject="", body="", reply=F
scrollbox(d, unicode("Because you are not currently connected \
to the network, the BM will not be sent right now"))
stealthLevel = BMConfigParser().safeGetInt('bitmessagesettings', 'ackstealthlevel')
ackdata = genAckPayload(streamNumber, stealthLevel)
#ackdata = genAckPayload(streamNumber, stealthLevel)
ackdata = genAckPayload( stealthLevel=stealthLevel)
sqlExecute(
"INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
"",