contact->cxn = cxn;
- if (contact->profile_channel)
+ if (contact->presence_channel)
chime_jugg_subscribe(cxn, contact->presence_channel, "Presence",
contact_presence_jugg_cb, contact);
- if (contact->profile_channel)
- chime_jugg_subscribe(cxn, contact->profile_channel,
- NULL, NULL, NULL);
-
/* As well as subscribing to the channel, we'll need to fetch the
* initial presence information for this contact */
priv->contacts_needed = g_slist_prepend(priv->contacts_needed, contact);
if (contact->presence_channel)
chime_jugg_unsubscribe(contact->cxn, contact->presence_channel, "Presence",
contact_presence_jugg_cb, contact);
- if (contact->profile_channel)
- chime_jugg_unsubscribe(contact->cxn, contact->profile_channel, NULL, NULL, NULL);
+
contact->cxn = NULL;
}
}