Summary: | Should implement ContactCapabilities | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Guillaume Desmottes <guillaume.desmottes> |
Component: | salut | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | Keywords: | patch |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
URL: | http://cgit.freedesktop.org/~jonny/telepathy-salut/log?h=contact-caps | ||
Whiteboard: | review+ | ||
i915 platform: | i915 features: | ||
Bug Depends on: | 19684 | ||
Bug Blocks: |
Description
Guillaume Desmottes
2009-10-21 03:57:23 UTC
Yes it should, but first, it needs to implement its draft version more sanely. LOOK MA, I DID IT. This looks fine. I've got a couple of nitpicks, but neither is a blocker. + const gchar *client_name = g_value_get_string (va->values + 0); + const GPtrArray *filters = g_value_get_boxed (va->values + 1); + const gchar * const * cap_tokens = g_value_get_boxed (va->values + 2); I could suggest using tp_value_array_unpack here? I don't know how much clearer it would actually be. if (!announce_self_caps (self, &error)) { gabble_capability_set_free (before); dbus_g_method_return_error (context, error); g_error_free (error); return; } if (!gabble_capability_set_equals (before, after)) { _emit_contact_capabilities_changed (self, base->self_handle); } I'm tempted to say that the former block should be inside the latter — why would we want to publish updated caps if they haven't changed? I know this isn't a regression in your branch. (In reply to comment #3) > + const gchar *client_name = g_value_get_string (va->values + 0); > + const GPtrArray *filters = g_value_get_boxed (va->values + 1); > + const gchar * const * cap_tokens = g_value_get_boxed (va->values + 2); > > I could suggest using tp_value_array_unpack here? I don't know how much clearer > it would actually be. I'd rather just keep it the same tbh as it'll be the same as gabble, not sure how much of an argument that really is.. anyway, yeah, deal widdit. > I'm tempted to say that the former block should be inside the latter — why > would we want to publish updated caps if they haven't changed? I know this > isn't a regression in your branch. Yeah you're right, I've fixed this. See the latest patch on my branch then. OH, and I've added capabilities-set and caps-channel-manager to the plugin API. See this branch on top of this one: http://cgit.freedesktop.org/~jonny/telepathy-salut/log?h=plugin-caps both look fine! le done. |
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.