Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/google.c @ 20281:d41907afb521
Don't display mail notifications for 0 new emails in Google Talk
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Sat, 29 Sep 2007 18:01:34 +0000 |
parents | 99ceb1329a5b |
children | ac46ffeb5b2b 5f829728a1a5 |
comparison
equal
deleted
inserted
replaced
20280:f00ab6c3d6d6 | 20281:d41907afb521 |
---|---|
62 default_tos[0] = jabber_get_bare_jid(to); | 62 default_tos[0] = jabber_get_bare_jid(to); |
63 | 63 |
64 message = xmlnode_get_child(child, "mail-thread-info"); | 64 message = xmlnode_get_child(child, "mail-thread-info"); |
65 | 65 |
66 if (count == 0 || !message) { | 66 if (count == 0 || !message) { |
67 purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL); | 67 if (count > 0) |
68 purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL); | |
68 g_free(default_tos[0]); | 69 g_free(default_tos[0]); |
69 return; | 70 return; |
70 } | 71 } |
71 | 72 |
72 /* Loop once to see how many messages were returned so we can allocate arrays | 73 /* Loop once to see how many messages were returned so we can allocate arrays |