correctly set message as read when we print them in chat control

This commit is contained in:
Yann Leboulanger 2011-05-11 22:11:54 +02:00
parent e8095fcdcb
commit 426d08ae09
1 changed files with 2 additions and 0 deletions

View File

@ -2582,6 +2582,8 @@ class RosterWindow:
obj.session.control.print_conversation(obj.msgtxt, typ,
tim=obj.timestamp, encrypted=obj.encrypted, subject=obj.subject,
xhtml=obj.xhtml, displaymarking=obj.displaymarking)
if obj.msg_id:
gajim.logger.set_read_messages([obj.msg_id])
elif obj.popup:
if not obj.session.control:
contact = gajim.contacts.get_contact(obj.conn.name, obj.jid,