[0.9] presences where we're waiting for caps disco said to have no caps
Submitted by Simon McVittie
Assigned to Telepathy bugs list
Consider the following situation:
- we receive presence from email@example.com
- we don't yet know what foo's capabilities hash means
- the disco request is still "in-flight"
From inspection of Will's fix for Bug #24250, it seems that GetContactCapabilities (and the equivalent contact attribute) will either return no capabilities at all, or the capabilities derived from an empty set of XMPP caps (e.g. Text); I'm not immediately sure which.
In both cases, the contact's caps should be omitted from the returned hash table, to indicate "don't know".
If we previously knew some capabilities for the contact, we should probably return those until we get the new ones, if possible?