diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-07-24 15:28:00 +0200 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-07-24 16:14:19 +0200 |
commit | e2f99aa39425dd3431e9cd8d09fb3b144c1ab0a7 (patch) | |
tree | e2f35b3e7da357d2ef6f046c13ba658274eeea3d | |
parent | 14992772277269299373386d68a632a5968ad511 (diff) | |
download | telepathy-glib-e2f99aa39425dd3431e9cd8d09fb3b144c1ab0a7.tar.gz |
tp_connection_upgrade_contacts(): Use special trick of ready_enough_for_contacts
TpConnection itself wants to prepare TpContacts before being officially
CONNECTED. This was already the case for self contact. Use the same
trick for blocked contacts.
https://bugs.freedesktop.org/show_bug.cgi?id=52441
-rw-r--r-- | telepathy-glib/contact.c | 8 |
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); |