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