[Telepathy-commits] [telepathy-haze/master] Work around MC passing "" as the mime type to SetAvatar
Will Thompson
will.thompson at collabora.co.uk
Tue Mar 24 05:44:01 PDT 2009
---
src/connection-avatars.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/connection-avatars.c b/src/connection-avatars.c
index f957b23..f58c69d 100644
--- a/src/connection-avatars.c
+++ b/src/connection-avatars.c
@@ -374,6 +374,15 @@ haze_connection_set_avatar (TpSvcConnectionInterfaceAvatars *self,
return;
}
+ /* FIXME: This is a work-around for mission control passing an empty
+ * mime_type when it re-sets your avatar on connection. Since it
+ * only caches the avatar if it was set correctly by Empathy, it's
+ * most likely actually acceptable, but the work-around should
+ * probably go away when MC is fixed.
+ */
+ if (*mime_type == '\0')
+ acceptable_mime_type = TRUE;
+
while (!acceptable_mime_type && *mime_types != NULL)
{
if (!tp_strdiff (*mime_types, mime_type))
--
1.5.6.5
More information about the telepathy-commits
mailing list