summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-09-05Connection: assume all handles have ContactCapsWill Thompson1-21/+11
Previously, some places in Gabble which called gabble_connection_get_handle_contact_capabilities() did not assume that it never returns NULL. But (due to the implicit text caps for everyone) it is guaranteed always to return a non-NULL array of capabilities, so we can simplify the places that call it.
2011-09-05CapsChannelManager: correct English in a commentWill Thompson1-1/+1
2011-09-05Connection: simplify getting ContactCaps without presenceWill Thompson1-14/+15
If we don't have presence for a contact, we do not have any capabilities for them. But we always want to ensure that all contacts are capable of IM. So, currently there is a special-case in the caps-gathering code: if we have no presence, we only call _get_contact_capabilities on the IM factory: its implementation of this virtual method, unlike all others, doesn't care if it's passed a NULL set of caps. Otherwise, if we do have a set of capabilities, we call gabble_connection_build_contact_caps(), which is essentially a foreach over all channel managers, including the IM factory. I think it's neater to avoid the special case, and treat "no presence" as equivalent (for capabilities purposes) to "presence with no caps".
2011-09-05Remove support for legacy Presence.Will Thompson21-157/+60
This was Olli's idea. He claims that building the old-school signals causes measurable CPU usage on accounts with lots of contacts (think: Facebook). It certainly causes D-Bus spam. Neither Telepathy-GLib nor TelepathyQt4 use this old interface. Empathy doesn't, either. I think this should be safe. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=40598 Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-05Merge branch 'telepathy-gabble-0.12'Will Thompson3-37/+28
2011-09-05MUC: don't forget password when handling nick conflictsWill Thompson3-37/+28
WockyMuc has a property, :password, representing the current password being used to join the MUC. GabbleMuc previously had a private variable, 'password', which was used for this. In the port to WockyMuc, setting the private variable was removed, but it was still used when re-attempting to join after a nick conflict. (I think the password should be a parameter to a hypothetical wocky_muc_join_async() which does all the nick conflict crap for you. Having this as state that kicks around on the WockyMuc for ever is bizarre—once you're in the room, you usually don't use the password, unless you're the owner, in which case you can retrieve the current password *which may be different*!) This patch expunges the zombie private variable, and ensures WockyMuc:password is only set when the user provides a password, not at every join attempt. It adds a test for this case, and some of the basic functionality of Password (which subsumes some incidental testing of the Password interface in muc/presence-before-closing: the only test that touched Password at all!). Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=39790 Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-02test plugin: make TestChannelManager implement CapsChannelManagerJonny Lamb3-2/+105
...and give back a new data form in the represent_client function. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-02connection: deal with not being able to hash self presenceJonny Lamb3-10/+36
If a data form is bad we might not be able to, so we shouldn't crash. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-02caps_helper: give data forms back to disco utility functionsJonny Lamb5-23/+23
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-02jingle-share tests: also consider data forms in disco repliesJonny Lamb1-11/+17
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-02caps_helper: split out code to read disco repliesJonny Lamb1-24/+29
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-02Stable Gabble was accidentally using the master branch of wockyMarco Barisione1-0/+0
2011-09-01gabble: add capabilities.h and caps-channel-manager.h as public APIJonny Lamb24-26/+27
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-01caps_helper.py: add initial data form parserJonny Lamb1-1/+18
We want to be able to check that disco replies with data forms still have the correct hash. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-01connection: send data forms in disco query repliesJonny Lamb1-3/+22
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-01presence-cache: store data forms from disco replies and the caps cacheJonny Lamb4-19/+72
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-01presence: start holding a list of data formsJonny Lamb6-8/+74
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-09-01Don't allow the stub for GabbleGoogleRelayResolver to be emptyMikhail Zabaluev1-2/+2
g_slice_alloc() behavior for zero-sized blocks is undocumented and leads to obscure code paths taken.
2011-09-01Ignore the relay info in Jingle stanza if Google relay support is disabledMikhail Zabaluev1-0/+3
2011-09-01Make Google proxy support optionalMikhail Zabaluev2-5/+46
The intent is to make optional the dependency on libsoup (fd.o #40537).
2011-09-01Isolated the Google relay resolution code in a separate source fileMikhail Zabaluev4-250/+366
2011-08-30Announce the camera-v1 caps bundle so that the Google UIs put a little ↵Olivier Crête2-1/+4
camera for us https://bugs.freedesktop.org/show_bug.cgi?id=40471
2011-08-30connection: save data forms created from UpdateCapabilitiesJonny Lamb1-7/+47
These aren't used yet. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-08-30caps-channel-manager: add data form argument to represent_clientJonny Lamb6-8/+15
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
2011-08-29presence-cache.c: Add Android presence cache bundleOlivier Crête1-1/+3
Let's add another "well-known" bundle https://bugs.freedesktop.org/show_bug.cgi?id=36996
2011-08-26Add a summary of options to the end of configureWill Thompson1-0/+24
2011-08-17nano version bumpWill Thompson2-1/+1
2011-08-17bump nano-version to 0.13.5.1Will Thompson1-1/+1
2011-08-170.13.5Will Thompson2-2/+7
2011-08-17Merge branch 'telepathy-gabble-0.12'Will Thompson1-21/+0
Conflicts: NEWS configure.ac
2011-08-17Version 0.12.6Will Thompson3-23/+9
2011-08-17nano version! 0.13.4.1Will Thompson1-1/+1
2011-08-17version 0.13.4Will Thompson2-3/+3
2011-08-17NEWS for 0.13.4Will Thompson1-0/+27
2011-08-17Merge branch 'telepathy-gabble-0.12'Will Thompson1-0/+21
Conflicts: NEWS configure.ac
2011-08-17nano-version bump!Will Thompson1-1/+1
2011-08-17Version 0.12.5Will Thompson2-3/+3
2011-08-17NEWS for 0.12.5Will Thompson2-0/+38
2011-08-17Merge branch 'old-bugs'Will Thompson10-14/+118
2011-08-10Update NEWSOlli Salli1-0/+7
2011-08-10Merge branch 'tube-caps'Olli Salli2-45/+84
Reviewed-by: Simon McVittie (smcv) <simon.mcvittie@collabora.co.uk>
2011-08-10tube-caps: Test for a bidirectional (no Requested property) stream tube filterOlli Salli1-1/+6
2011-08-10Drop an extra == TRUE in a conditionalOlli Salli1-1/+1
2011-08-10private-tubes-factory.c: Use TP_PROP constantsOlli Salli1-32/+32
2011-08-10tube-caps test: Test that Requested=True filters don't make tube services ↵Olli Salli1-14/+43
advertised
2011-08-10Don't advertise being able to receive tubes if we can only initiate themOlli Salli1-0/+5
2011-08-05Update wocky to fix PEP when power saving is enabledMarco Barisione1-0/+0
2011-08-05Update wocky to fix PEP when power saving is enabledMarco Barisione1-0/+0
2011-08-03Update the Wocky snaphost and adapt the changes in WockyPingMarco Barisione2-1/+4
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-08-03Merge branch 'telepathy-gabble-0.12'Will Thompson1-1/+1