From 6c47e30fccd48fc476e4d67d560ae28bbb33b81c Mon Sep 17 00:00:00 2001 From: navjot Date: Sat, 2 May 2020 15:09:23 +0530 Subject: [PATCH] fixed sender address validation issue on composer --- src/bitmessagekivy/mpybit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bitmessagekivy/mpybit.py b/src/bitmessagekivy/mpybit.py index fab8ab96..6c0fa813 100644 --- a/src/bitmessagekivy/mpybit.py +++ b/src/bitmessagekivy/mpybit.py @@ -579,7 +579,8 @@ class DropDownWidget(BoxLayout): if toAddress != '' and subject and message: status, addressVersionNumber, streamNumber, ripe = ( decodeAddress(toAddress)) - if status == 'success': + valid_from_add = True if fromAddress in state.kivyapp.variable_1 else False + if status == 'success' and valid_from_add: navApp.root.ids.sc3.children[0].active = True if state.detailPageType == 'draft' \ and state.send_draft_mail: @@ -632,6 +633,8 @@ class DropDownWidget(BoxLayout): print "sqlExecute successfully #######################" state.in_composer = True return + elif valid_from_add is False: + msg = 'Please enter valid sender address' else: msg = 'Enter a valid recipients address' elif not toAddress: