changeset 7293a6cd2a39 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=7293a6cd2a39 description: don't traceback when we try to open a remembered chat window from a contact not in roster
diffstat:
src/roster_window.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r c6392d5f5c43 -r 7293a6cd2a39 src/roster_window.py --- a/src/roster_window.py Wed Apr 09 17:37:56 2014 +0200 +++ b/src/roster_window.py Wed Apr 09 17:56:09 2014 +0200 @@ -2639,6 +2639,9 @@ contact = \ gajim.contacts.get_contact_with_highest_priority( account, jid) + if not contact: + contact = self.add_to_not_in_the_roster(account, + jid) gajim.interface.on_open_chat_window(None, contact, account) gajim.config.set_per('accounts', account,