fixed write_msg mail_id var

This commit is contained in:
shekhar-cis 2022-05-11 19:12:05 +05:30
parent 7208af179e
commit f0c7c51cdd
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -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]