From f0c7c51cddd44c551e4371873955e611e11987ca Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Wed, 11 May 2022 19:12:05 +0530 Subject: [PATCH] fixed write_msg mail_id var --- src/bitmessagekivy/baseclass/maildetail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitmessagekivy/baseclass/maildetail.py b/src/bitmessagekivy/baseclass/maildetail.py index bf1d2ac9..aeb1dc8f 100644 --- a/src/bitmessagekivy/baseclass/maildetail.py +++ b/src/bitmessagekivy/baseclass/maildetail.py @@ -219,10 +219,10 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes def write_msg(self, navApp): """Write on draft mail""" - state.send_draft_mail = state.mail_id + state.send_draft_mail = self.kivy_state.mail_id data = sqlQuery( "select toaddress, fromaddress, subject, message from sent where" - " ackdata = ?;", state.mail_id) + " ackdata = ?;", self.kivy_state.mail_id) composer_ids = ( self.parent.parent.ids.sc3.children[1].ids) composer_ids.ti.text = data[0][1]