Summary: | Erroneous warning if CM does not implement SimplePresence | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Xavier Claessens <xclaesse> |
Component: | tp-glib | 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 | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Xavier Claessens
2013-08-15 13:38:29 UTC
Relatedly, there are inconsistencies in the various contact_maybe_set_*() functions, some warn if the attr is NULL, others silently return without marking the feature as prepared, and finally some mark feature as ready but creates a dummy value. (In reply to comment #0) > That warning > is displayed if we WANT the presence but CM did not give it because it's not > supported. I thought we didn't even ask, for things not present in ContactAttributeInterfaces? (In reply to comment #2) > I thought we didn't even ask, for things not present in > ContactAttributeInterfaces? We don't, but we don't remember what was present in ContactAttributeInterfaces so we can suppress the warning. Attachment #86918 [details] on Bug #70010 fixes this, so I'm tagging it as patch. (In reply to comment #1) > Relatedly, there are inconsistencies in the various contact_maybe_set_*() > functions, some warn if the attr is NULL, others silently return without > marking the feature as prepared, and finally some mark feature as ready but > creates a dummy value. They have to be somewhat inconsistent. Some (Alias, SimplePresence) define that if supported and asked for, the attribute must not be omitted, usually because there's a sensible answer at all times (alias=identifier, presence=UNKNOWN). Some define omission to mean "don't know". Whether to consider NULL/omission to be enough to prepare the feature is case-by-case. I'll check what the cases are / whether they're all sensible. Fixed in git for 0.23.0 (reviewed by Guillaume on Bug #70010). |
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.