[empathy] Claim that contacts support stream tube if it's announced in their contact capabilities
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Claim that contacts support stream tube if it's announced in their contact capabilities
- Date: Thu, 14 Jan 2010 13:56:28 +0000 (UTC)
commit 398f69f13a9c9ee415fba5b1b393f27984b558bc
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Jan 13 14:06:12 2010 +0000
Claim that contacts support stream tube if it's announced in their contact capabilities
libempathy/empathy-tp-contact-factory.c | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c
index a9a02b1..ffd3087 100644
--- a/libempathy/empathy-tp-contact-factory.c
+++ b/libempathy/empathy-tp-contact-factory.c
@@ -691,10 +691,10 @@ get_requestable_channel_classes_cb (TpProxy *connection,
* transfer if it's implemented in the CM */
if (priv->can_request_ft)
caps |= EMPATHY_CAPABILITIES_FT;
- }
- if (priv->can_request_st)
- caps |= EMPATHY_CAPABILITIES_STREAM_TUBE;
+ if (priv->can_request_st)
+ caps |= EMPATHY_CAPABILITIES_STREAM_TUBE;
+ }
empathy_contact_set_capabilities (contact, caps);
}
@@ -771,6 +771,9 @@ update_contact_capabilities (EmpathyTpContactFactory *self,
if (!tp_strdiff (chan_type, TP_IFACE_CHANNEL_TYPE_FILE_TRANSFER))
capabilities |= EMPATHY_CAPABILITIES_FT;
+
+ if (!tp_strdiff (chan_type, TP_IFACE_CHANNEL_TYPE_STREAM_TUBE))
+ capabilities |= EMPATHY_CAPABILITIES_STREAM_TUBE;
}
DEBUG ("Changing capabilities for contact %s (%d) to %d",
@@ -829,11 +832,11 @@ tp_contact_factory_add_contact (EmpathyTpContactFactory *tp_factory,
if (priv->can_request_ft) {
caps |= EMPATHY_CAPABILITIES_FT;
}
- }
- /* Set the Stream Tube capability */
- if (priv->can_request_st) {
- caps |= EMPATHY_CAPABILITIES_STREAM_TUBE;
+ /* Set the Stream Tube capability */
+ if (priv->can_request_st) {
+ caps |= EMPATHY_CAPABILITIES_STREAM_TUBE;
+ }
}
empathy_contact_set_capabilities (contact, caps);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]