soc.2009.telepathy: 8507371c: Don't return empty status text, it makes...

sttwister at soc.pidgin.im sttwister at soc.pidgin.im
Mon Jun 8 20:20:29 EDT 2009


-----------------------------------------------------------------
Revision: 8507371c13c053eda4710385e9b1ebd44b3a6547
Ancestor: 87d9a27adcfb963815e84d193b8666775cf02b50
Author: sttwister at soc.pidgin.im
Date: 2009-06-09T00:14:45
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/8507371c13c053eda4710385e9b1ebd44b3a6547

Modified files:
        libpurple/protocols/telepathy/telepathy.c

ChangeLog: 

Don't return empty status text, it makes the UI ugly

-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy.c	d4e9add95c5c49934c5c77d0edfa0f7314f839ef
+++ libpurple/protocols/telepathy/telepathy.c	af6ae8bc525b77911e37a4c6f495c3fa9f46b47b
@@ -151,6 +151,10 @@ telepathy_status_text(PurpleBuddy* buddy
 
 			purple_debug_info("telepathy", "Returning status for %s\n", name);
 
+			/* an empty message confuses the UI, NULL is better */
+			if (g_strcmp0(message, "") == 0)
+				return NULL;
+
 			return g_strdup(message);
 		}
 		else


More information about the Commits mailing list