We NEVER want to count gc_messages in roster title. Good catch hawke

This commit is contained in:
Jean-Marie Traissard 2006-11-07 23:36:48 +00:00
parent 7c433c7c85
commit 943338b00b
2 changed files with 3 additions and 3 deletions

View File

@ -562,7 +562,7 @@ class Interface:
contact.msg_id = msg_id contact.msg_id = msg_id
# THIS MUST BE AFTER chatstates handling # THIS MUST BE AFTER chatstates handling
# AND BEFORE playsound (else we here sounding on chatstates!) # AND BEFORE playsound (else we ear sounding on chatstates!)
if not message: # empty message text if not message: # empty message text
return return

View File

@ -3961,8 +3961,8 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
start = '' start = ''
nb_unread = gajim.events.get_nb_events(['chat', 'normal', nb_unread = gajim.events.get_nb_events(['chat', 'normal',
'file-request', 'file-error', 'file-completed', 'file-request', 'file-error', 'file-completed',
'file-request-error', 'file-send-error', 'file-stopped', 'gc_msg', 'file-request-error', 'file-send-error', 'file-stopped',
'printed_chat', 'printed_gc_msg']) 'printed_chat'])
if nb_unread > 1: if nb_unread > 1:
start = '[' + str(nb_unread) + '] ' start = '[' + str(nb_unread) + '] '
elif nb_unread == 1: elif nb_unread == 1: