fix getting correct old message type when restoring last conversation. Fixes #7534
This commit is contained in:
parent
c64f69a1a4
commit
c56b9e9267
1 changed files with 4 additions and 4 deletions
|
@ -3048,14 +3048,14 @@ class ChatControl(ChatControlBase):
|
||||||
xhtml = None
|
xhtml = None
|
||||||
if row[2].startswith('<body '):
|
if row[2].startswith('<body '):
|
||||||
xhtml = row[2]
|
xhtml = row[2]
|
||||||
if row[2].startswith('/me ') or row[2].startswith('/me\n'):
|
|
||||||
local_old_kind = None
|
|
||||||
else:
|
|
||||||
local_old_kind = kind
|
|
||||||
ChatControlBase.print_conversation_line(self, row[2], kind, name,
|
ChatControlBase.print_conversation_line(self, row[2], kind, name,
|
||||||
tim, small_attr, small_attr + ['restored_message'],
|
tim, small_attr, small_attr + ['restored_message'],
|
||||||
small_attr + ['restored_message'], False,
|
small_attr + ['restored_message'], False,
|
||||||
old_kind=local_old_kind, xhtml=xhtml)
|
old_kind=local_old_kind, xhtml=xhtml)
|
||||||
|
if row[2].startswith('/me ') or row[2].startswith('/me\n'):
|
||||||
|
local_old_kind = None
|
||||||
|
else:
|
||||||
|
local_old_kind = kind
|
||||||
if len(rows):
|
if len(rows):
|
||||||
self.conv_textview.print_empty_line()
|
self.conv_textview.print_empty_line()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue