summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--telepathy-glib/contact.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/telepathy-glib/contact.c b/telepathy-glib/contact.c
index 185494544..77962f2bc 100644
--- a/telepathy-glib/contact.c
+++ b/telepathy-glib/contact.c
@@ -4148,7 +4148,7 @@ tp_connection_get_contacts_by_handle (TpConnection *self,
/* As an implementation detail, this method actually starts working slightly
* before we're officially ready. We use this to get the TpContact for the
- * SelfHandle. */
+ * Connection. */
g_return_if_fail (self->priv->ready_enough_for_contacts);
g_return_if_fail (tp_proxy_get_invalidated (self) == NULL);
@@ -4267,8 +4267,10 @@ tp_connection_upgrade_contacts (TpConnection *self,
ContactsContext *context;
guint i;
- g_return_if_fail (tp_proxy_is_prepared (self,
- TP_CONNECTION_FEATURE_CONNECTED));
+ /* As an implementation detail, this method actually starts working slightly
+ * before we're officially ready. We use this to get the TpContact for the
+ * Connection. */
+ g_return_if_fail (self->priv->ready_enough_for_contacts);
g_return_if_fail (n_contacts >= 1);
g_return_if_fail (contacts != NULL);
g_return_if_fail (n_features == 0 || features != NULL);