From 92bbc215cc6f5c665a834662f2606d2802173a85 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 12 Sep 2005 11:51:18 +0000 Subject: [PATCH] update banner only if it's a presence from higher ptiority resource --- src/roster_window.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index d1fd302ac..7c7443c04 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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'''