Use correct account when opening history window

This commit is contained in:
Yann Leboulanger 2017-08-18 22:05:48 +02:00
parent 9bafd7698b
commit c4383c16c6
1 changed files with 2 additions and 3 deletions

View File

@ -116,7 +116,7 @@ class HistoryWindow:
col.set_resizable(True)
self.jid = None # The history we are currently viewing
self.account = None
self.account = account
self.completion_dict = {}
self.accounts_seen_online = [] # Update dict when new accounts connect
self.jids_to_search = []
@ -259,8 +259,7 @@ class HistoryWindow:
def on_jid_entry_activate(self, widget):
jid = self.jid_entry.get_text()
account = None # we don't know the account, could be any. Search for it!
self._load_history(jid, account)
self._load_history(jid, self.account)
self.results_window.set_property('visible', False)
def on_jid_entry_focus(self, widget, event):