From f8f200ebe78a9e06caf4fcd8e5d10f266eb503f3 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 8 Jan 2006 00:27:38 +0000 Subject: [PATCH] get contact from the self.contacts so that even if it's pm we get a Contact instance --- src/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat.py b/src/chat.py index fa802e82e..b147a4b52 100644 --- a/src/chat.py +++ b/src/chat.py @@ -463,7 +463,7 @@ class Chat: if self.widget_name == 'tabbed_chat_window': jid = self.get_active_jid() - c = gajim.contacts.get_first_contact_from_jid(self.account, jid) + c = self.contacts[jid] if _('not in the roster') in c.groups: # for add_to_roster_menuitem childs[5].show() childs[5].set_no_show_all(False) @@ -501,7 +501,7 @@ class Chat: childs[3].set_active(isactive) childs[3].set_property('sensitive', issensitive) # If we don't have resource, we can't do file transfert - c = gajim.contacts.get_first_contact_from_jid(self.account, jid) + c = self.contacts[jid] if not c.resource: childs[2].set_sensitive(False) else: