use new contacts functions

This commit is contained in:
Yann Leboulanger 2006-02-01 19:09:48 +00:00
parent 420ed6ddd4
commit d25430313d

View file

@ -334,9 +334,9 @@ class HistoryWindow:
if kind == constants.KIND_CHAT_MSG_SENT: # it's us! :) if kind == constants.KIND_CHAT_MSG_SENT: # it's us! :)
contact_name = gajim.nicks[self.account] contact_name = gajim.nicks[self.account]
else: else:
if self.account and gajim.contacts[self.account].has_key(self.jid): contact = gajim.contacts.get_first_contact_from_jid(self.account,
contact = gajim.get_first_contact_instance_from_jid( self.jid)
self.account, self.jid) if contact:
contact_name = contact.get_shown_name() contact_name = contact.get_shown_name()
else: else:
contact_name = self.jid contact_name = self.jid