Skip to content
Snippets Groups Projects
Commit 0bb2e5c1 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

be sure to print restored conversation BEFORE we print new messages

parent 4fd5ed93
No related branches found
No related tags found
No related merge requests found
......@@ -444,13 +444,6 @@ def remove_tab(self, jid):
chat.Chat.remove_tab(self, jid, 'chats')
del self.contacts[jid]
def init_conversation(self, contact):
# restore previous conversation
self.restore_conversation(contact.jid)
if gajim.awaiting_events[self.account].has_key(contact.jid):
self.read_queue(contact.jid)
def new_tab(self, contact):
'''when new tab is created'''
self.names[contact.jid] = contact.name
......@@ -483,7 +476,12 @@ def new_tab(self, contact):
self.redraw_tab(contact.jid)
self.draw_widgets(contact)
gobject.idle_add(self.init_conversation, contact)
# restore previous conversation
self.restore_conversation(contact.jid)
if gajim.awaiting_events[self.account].has_key(contact.jid):
self.read_queue(contact.jid)
self.childs[contact.jid].show_all()
# chatstates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment