Bug 26242

Summary: Haze hidden and xa statuses don't interoperate with Empathy
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: hazeAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: git master   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/smcv/haze-smcv.git;a=shortlog;h=refs/heads/hidden
Whiteboard:
i915 platform: i915 features:

Description Simon McVittie 2010-01-26 04:32:30 UTC
For interoperability, we should have well-known names for statuses. Haze doesn't use the well-known names for extended-away and hidden, which means Empathy's fairly simplistic status selector can't set them; Haze's names are also not in Mission Control's list of fallbacks. Pseudo-patch:

 static const TpPresenceStatusSpec statuses[] = {
     { "available", TP_CONNECTION_PRESENCE_TYPE_AVAILABLE, TRUE,
         arg_specs, NULL, NULL },
     { "busy", TP_CONNECTION_PRESENCE_TYPE_BUSY, TRUE,
         arg_specs, NULL, NULL },
     { "away", TP_CONNECTION_PRESENCE_TYPE_AWAY, TRUE,
         arg_specs, NULL, NULL },
-    { "ext_away", TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY, TRUE,
-        arg_specs, NULL, NULL },
+    { "xa", TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY, TRUE,
+        arg_specs, NULL, NULL },
-    { "invisible", TP_CONNECTION_PRESENCE_TYPE_HIDDEN, TRUE, NULL, NULL, NULL },
+    { "hidden", TP_CONNECTION_PRESENCE_TYPE_HIDDEN, TRUE, NULL, NULL, NULL },
     { "offline", TP_CONNECTION_PRESENCE_TYPE_OFFLINE, FALSE, NULL, NULL, NULL },
     { NULL, TP_CONNECTION_PRESENCE_TYPE_UNSET, FALSE, NULL, NULL, NULL }
 };
Comment 1 Simon McVittie 2010-01-26 04:43:34 UTC
The proposed change (in branch smcv/hidden) does indeed work: my two Yahoo test accounts can now become invisible to each other. I haven't tested xa, but it can't be any worse than currently :-)

http://git.collabora.co.uk/?p=user/smcv/haze-smcv.git;a=shortlog;h=refs/heads/hidden
Comment 2 Simon McVittie 2010-01-26 04:53:09 UTC
Fixed in git, will be in version 0.3.4.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.