Fix the get_nick issue correctly this time.

This commit is contained in:
Florent Le Coz 2012-04-27 19:40:39 +02:00
parent 4ee3566a74
commit 2a3434b1f8

View file

@ -2502,7 +2502,7 @@ class ConversationTab(ChatTab):
jid = JID(self.name) jid = JID(self.name)
contact = roster.get_contact_by_jid(jid.bare) contact = roster.get_contact_by_jid(jid.bare)
if contact: if contact:
return contact.name return contact.name or jid.user
else: else:
return jid.user return jid.user