Cleanup code from previous merge
[empathy.git] / libempathy / empathy-tp-contact-factory.c
index 533f1c5b19e2448f8f03f4a44b545e7eab01f26a..1cce6080c8acea77ac3798f790a72c66bf93dfcf 100644 (file)
@@ -505,7 +505,8 @@ tp_contact_factory_update_capabilities (EmpathyTpContactFactory *tp_factory,
        capabilities = empathy_contact_get_capabilities (contact);
 
        if (strcmp (channel_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA) == 0) {
-               capabilities = EMPATHY_CAPABILITIES_NONE;
+               capabilities &= ~EMPATHY_CAPABILITIES_AUDIO;
+               capabilities &= ~EMPATHY_CAPABILITIES_VIDEO;
                if (specific & TP_CHANNEL_MEDIA_CAPABILITY_AUDIO) {
                        capabilities |= EMPATHY_CAPABILITIES_AUDIO;
                }
@@ -533,7 +534,7 @@ tp_contact_factory_get_capabilities_cb (DBusGProxy *proxy,
 
        if (error) {
                empathy_debug (DEBUG_DOMAIN, "Error getting capabilities: %s",
-                      error->message);
+                              error->message);
                /* FIXME Should set the capabilities of the contacts for which this request
                 * originated to NONE */
                goto OUT;