fix getting correct old message type when restoring last conversation. Fixes #7534

This commit is contained in:
Yann Leboulanger 2013-11-01 20:00:28 +01:00
parent c64f69a1a4
commit c56b9e9267
1 changed files with 4 additions and 4 deletions

View File

@ -3048,14 +3048,14 @@ class ChatControl(ChatControlBase):
xhtml = None
if row[2].startswith('<body '):
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,
tim, small_attr, small_attr + ['restored_message'],
small_attr + ['restored_message'], False,
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):
self.conv_textview.print_empty_line()