Commit 426d08ae authored by Yann Leboulanger's avatar Yann Leboulanger

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

parent e8095fcd
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment