From 2849ae76417d454c3563a5735f5b1da247614f85 Mon Sep 17 00:00:00 2001 From: s3goat <41472927+dimyme@users.noreply.github.com> Date: Thu, 20 Sep 2018 12:40:56 +0200 Subject: [PATCH] removed global streamNumber will be autoset I guess --- src/bitmessagecurses/__init__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/bitmessagecurses/__init__.py b/src/bitmessagecurses/__init__.py index c464e380..1e738a6c 100644 --- a/src/bitmessagecurses/__init__.py +++ b/src/bitmessagecurses/__init__.py @@ -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 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", "",