If I attempt to set the presence on a connection before connecting it, and the CM doesn't support this, then my Connection->setSelfPresence() call will fail. In this case, I think the library should return a success instead and store the presence requested, setting it immediately after I connect the connection. (As discussed with Olli and Andre on IRC). Also, this is a blocker for t-a-k, so it would be great to get it fixed asap :)
The Connection setting self presence functionality is nowadays only useful when not using an AM ie. never in real applications unless you're the AM yourself. Will be moved to a ConnectionLowLevel class in 0.5.0. As a low-level method, it doesn't need and shouldn't have, in fact, high-level semantics like this (for full control where it's needed).
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.