diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-12-23 01:56:29 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-12-23 01:56:29 +0800 |
commit | c10348d100cf46caa58e37fd8592439b311e1816 (patch) | |
tree | b456791ad6de0a4c026b64c20377fcd5878e4b09 | |
parent | 10a9ade013f42fb26c2d5bbd393a6de692deca3d (diff) | |
download | gsoc2013-empathy-c10348d100cf46caa58e37fd8592439b311e1816.tar gsoc2013-empathy-c10348d100cf46caa58e37fd8592439b311e1816.tar.gz gsoc2013-empathy-c10348d100cf46caa58e37fd8592439b311e1816.tar.bz2 gsoc2013-empathy-c10348d100cf46caa58e37fd8592439b311e1816.tar.lz gsoc2013-empathy-c10348d100cf46caa58e37fd8592439b311e1816.tar.xz gsoc2013-empathy-c10348d100cf46caa58e37fd8592439b311e1816.tar.zst gsoc2013-empathy-c10348d100cf46caa58e37fd8592439b311e1816.zip |
Make existing contact FT capable when the CM supports it
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2011 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r-- | libempathy/empathy-tp-contact-factory.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c index 479db6602..3058ec18c 100644 --- a/libempathy/empathy-tp-contact-factory.c +++ b/libempathy/empathy-tp-contact-factory.c @@ -843,6 +843,7 @@ get_requestable_channel_classes_cb (TpProxy *connection, GValue class = {0,}; GValue *chan_type, *handle_type; GHashTable *fixed_prop; + GList *l; g_value_init (&class, TP_STRUCT_TYPE_REQUESTABLE_CHANNEL_CLASS); g_value_set_static_boxed (&class, g_ptr_array_index (classes, i)); @@ -869,6 +870,16 @@ get_requestable_channel_classes_cb (TpProxy *connection, /* We can request file transfer channel to contacts. */ priv->can_request_ft = TRUE; + /* Update the capabilities of all contacts */ + for (l = priv->contacts; l != NULL; l = g_list_next (l)) { + EmpathyContact *contact = l->data; + EmpathyCapabilities caps; + + caps = empathy_contact_get_capabilities (contact); + empathy_contact_set_capabilities (contact, caps | + EMPATHY_CAPABILITIES_FT); + } + break; } |