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

bugfix: we don't have the jid in contacts.roster if it's a pm

parent 74a45a72
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ def __init__(self, plugin, jid, account=None):
self.nb_line = gajim.logger.get_nb_line(jid)
xml = gtk.glade.XML(GTKGUI_GLADE, 'history_window', APP)
self.window = xml.get_widget('history_window')
if account:
if account and self.plugin.roster.contacts[account].has_key(jid):
list_users = self.plugin.roster.contacts[account][self.jid]
user = list_users[0]
title = 'Conversation History with ' + user.name
......
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