diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-10-20 16:23:59 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-01 13:05:05 +0100 |
commit | 293c43f3c7d9359d7c03a150dbc348fbeaf14ca6 (patch) | |
tree | 36c5a526ee7e9bea1e352a7419cbb3829b1c998c /telepathy-glib/connection-contact-list.c | |
parent | c712fb46c5ed09a461a86d52a712a03d33beae2d (diff) | |
download | telepathy-glib-293c43f3c7d9359d7c03a150dbc348fbeaf14ca6.tar.gz |
TpContact: add is-blocked property
https://bugs.freedesktop.org/show_bug.cgi?id=41801
Diffstat (limited to 'telepathy-glib/connection-contact-list.c')
-rw-r--r-- | telepathy-glib/connection-contact-list.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/telepathy-glib/connection-contact-list.c b/telepathy-glib/connection-contact-list.c index 952da068d..8d8dbbc20 100644 --- a/telepathy-glib/connection-contact-list.c +++ b/telepathy-glib/connection-contact-list.c @@ -1699,9 +1699,10 @@ process_queued_blocked_changed (TpConnection *self) contact = tp_simple_client_factory_ensure_contact ( tp_proxy_get_factory (self), self, handle, identifier); - /* TODO: set contact as blocked in TpContact */ g_ptr_array_add (item->added_contacts, contact); g_ptr_array_add (contacts, contact); + + _tp_contact_set_is_blocked (contact, TRUE); } g_hash_table_iter_init (&iter, item->removed); @@ -1714,9 +1715,10 @@ process_queued_blocked_changed (TpConnection *self) contact = tp_simple_client_factory_ensure_contact ( tp_proxy_get_factory (self), self, handle, identifier); - /* TODO: set contact as unblocked in TpContact */ g_ptr_array_add (item->removed_contacts, contact); g_ptr_array_add (contacts, contact); + + _tp_contact_set_is_blocked (contact, FALSE); } if (contacts->len == 0) |