From 9a4c85d4da38e40435d0860e5c5d34fbb315f257 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Thu, 12 May 2022 15:51:07 +0530 Subject: [PATCH] Add Constant variable --- src/bitmessagekivy/baseclass/maildetail.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bitmessagekivy/baseclass/maildetail.py b/src/bitmessagekivy/baseclass/maildetail.py index aeb1dc8f..75a39754 100644 --- a/src/bitmessagekivy/baseclass/maildetail.py +++ b/src/bitmessagekivy/baseclass/maildetail.py @@ -196,6 +196,8 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes def inbox_reply(self): """Reply inbox messages""" state.in_composer = True + from_address = ' wrote:--------------\n' + time_str = '\n\n --------------On ' data = sqlQuery( "select toaddress, fromaddress, subject, message, received from inbox where" " msgid = ?;", state.mail_id) @@ -210,7 +212,7 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes # sender_name = BMConfigParser().get(data[0][1], 'label') sender_name = data[0][1] composer_obj.body.text = ( - '\n\n --------------On ' + time_tag + ', ' + sender_name + ' wrote:--------------\n' + data[0][3]) + time_str + time_tag + ', ' + sender_name + from_address + data[0][3]) composer_obj.body.focus = True composer_obj.body.cursor = (0, 0) state.kivyapp.root.ids.sc3.children[1].ids.rv.data = ''