soc.2009.telepathy: ec8545dc: Clear buddy avatar in case of an empty t...

sttwister at soc.pidgin.im sttwister at soc.pidgin.im
Tue Jun 16 08:25:33 EDT 2009


-----------------------------------------------------------------
Revision: ec8545dc30d048802c19bc685b6cf6449a24bad9
Ancestor: 34ed384afa4364e6abba32bc2a078a6d486e0677
Author: sttwister at soc.pidgin.im
Date: 2009-06-16T12:23:12
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/ec8545dc30d048802c19bc685b6cf6449a24bad9

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

ChangeLog: 

Clear buddy avatar in case of an empty token

-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy.c	e281a74ef88929ce0e2604a376bd5421ba12ddbc
+++ libpurple/protocols/telepathy/telepathy.c	badfa5c36462e3257efb74e98eabbf56f4d205de
@@ -565,6 +565,14 @@ avatar_updated_cb (TpConnection *proxy,
 		return;
 	}
 
+	/* clear the avatar in case of an empty token */
+	if (*arg_New_Avatar_Token == 0)
+	{
+		purple_buddy_icons_set_for_user(data->acct, tp_contact_get_identifier(contact), NULL, 0, "");
+		return;
+	}
+
+
 	icon = purple_buddy_get_icon(buddy);
 
 	if (g_strcmp0(purple_buddy_icon_get_checksum(icon), arg_New_Avatar_Token) != 0)


More information about the Commits mailing list