first popuped message is a new message

This commit is contained in:
Yann Leboulanger 2005-11-05 23:43:43 +00:00
parent 164973ff82
commit 004cb9c5d3
2 changed files with 2 additions and 2 deletions

View File

@ -840,7 +840,7 @@ class Chat:
urgent = True
if (jid != self.get_active_jid() or \
not self.window.is_active() or \
not end) and kind == 'incoming':
not end) and kind in ('incoming', 'incoming_queue'):
if self.widget_name == 'groupchat_window':
if text.find(self.nicks[jid]) == -1:
# Do not notify us for gc messages that are not for us

View File

@ -846,7 +846,7 @@ class TabbedChatWindow(chat.Chat):
typ = 'pm'
gajim.interface.roster.draw_contact(jid, self.account)
if gajim.interface.systray_enabled:
if jid == self.get_active_jid() and gajim.interface.systray_enabled:
gajim.interface.systray.remove_jid(jid, self.account, typ)
showOffline = gajim.config.get('showoffline')
if (contact.show == 'offline' or contact.show == 'error') and \