update banner only if it's a presence from higher ptiority resource

This commit is contained in:
Yann Leboulanger 2005-09-12 11:51:18 +00:00
parent ef21462543
commit 92bbc215cc
1 changed files with 4 additions and 2 deletions

View File

@ -612,8 +612,10 @@ class RosterWindow:
self.plugin.windows[account]['chats'][jid].print_conversation(
_('%s is now %s (%s)') % (name, uf_show, status), jid, 'status')
self.plugin.windows[account]['chats'][jid].draw_name_banner(
contact, chatstate = None)
if contact == gajim.get_contact_instance_with_highest_priority(\
account, contact.jid):
self.plugin.windows[account]['chats'][jid].draw_name_banner(
contact, chatstate = None)
def on_info(self, widget, user, account):
'''Call vcard_information_window class to display user's information'''