# HG changeset patch # User Evan Schoenberg # Date 1191088894 0 # Node ID d41907afb52135624bc14b60ff8f8a76c11d3bea # Parent f00ab6c3d6d6b8d921f00fb3477dd389a9665982 Don't display mail notifications for 0 new emails in Google Talk diff -r f00ab6c3d6d6 -r d41907afb521 libpurple/protocols/jabber/google.c --- 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; }