Mercurial > pidgin
changeset 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 | f00ab6c3d6d6 |
children | f837139b3732 |
files | libpurple/protocols/jabber/google.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c Sat Sep 29 13:32:05 2007 +0000 +++ b/libpurple/protocols/jabber/google.c Sat Sep 29 18:01:34 2007 +0000 @@ -64,7 +64,8 @@ message = xmlnode_get_child(child, "mail-thread-info"); if (count == 0 || !message) { - purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL); + if (count > 0) + purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL); g_free(default_tos[0]); return; }