Merge pull request #59 from jaicis/kivyfixes

fixed reply message issue for one machine to another machine
This commit is contained in:
navjotcis 2020-04-06 20:31:45 +05:30 committed by GitHub
commit 82b565571c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2268,10 +2268,11 @@ class MailDetail(Screen): # pylint: disable=too-many-instance-attributes
composer_obj.subject.text = 'Re: ' + (split_subject[1] if len(split_subject) > 1 else split_subject[0]) composer_obj.subject.text = 'Re: ' + (split_subject[1] if len(split_subject) > 1 else split_subject[0])
time_obj = datetime.fromtimestamp(int(data[0][4])) time_obj = datetime.fromtimestamp(int(data[0][4]))
time_tag = time_obj.strftime("%d %b %Y, %I:%M %p") time_tag = time_obj.strftime("%d %b %Y, %I:%M %p")
sender_name = BMConfigParser().get(data[0][1], 'label') # sender_name = BMConfigParser().get(data[0][1], 'label')
sender_name = data[0][1]
composer_obj.body.text = ( composer_obj.body.text = (
'\n\n ------------------------On ' + time_tag + ', ' '\n\n --------------On ' + time_tag + ', '
+ sender_name + ' wrote:-----------------------\n' + data[0][3]) + sender_name + ' wrote:--------------\n' + data[0][3])
composer_obj.body.focus = True composer_obj.body.focus = True
composer_obj.body.cursor = (0, 0) composer_obj.body.cursor = (0, 0)
state.kivyapp.root.ids.sc3.children[1].ids.rv.data = '' state.kivyapp.root.ids.sc3.children[1].ids.rv.data = ''