aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-05-08 22:28:47 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-05-08 22:28:47 +0800
commita56bf15a5dca91b8b7bce593c939ec6404ae37b6 (patch)
treeb66727ebaf5d0dd6f33a4386739f3ac59372aa12 /libempathy
parent95f8148c1324e21bdec46ebe8c43037ffb6f2328 (diff)
downloadgsoc2013-empathy-a56bf15a5dca91b8b7bce593c939ec6404ae37b6.tar
gsoc2013-empathy-a56bf15a5dca91b8b7bce593c939ec6404ae37b6.tar.gz
gsoc2013-empathy-a56bf15a5dca91b8b7bce593c939ec6404ae37b6.tar.bz2
gsoc2013-empathy-a56bf15a5dca91b8b7bce593c939ec6404ae37b6.tar.lz
gsoc2013-empathy-a56bf15a5dca91b8b7bce593c939ec6404ae37b6.tar.xz
gsoc2013-empathy-a56bf15a5dca91b8b7bce593c939ec6404ae37b6.tar.zst
gsoc2013-empathy-a56bf15a5dca91b8b7bce593c939ec6404ae37b6.zip
If there is no publish list, don't auto-add people to it
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-contact-list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index f21979495..f8d897185 100644
--- a/libempathy/empathy-tp-contact-list.c
+++ b/libempathy/empathy-tp-contact-list.c
@@ -655,6 +655,9 @@ tp_contact_list_subscribe_group_members_changed_cb (TpChannel *channel,
add_to_members (list, remote_pending);
/* Implicitly accept pending request of contacts which are now members. */
+ if (priv->publish == NULL)
+ return;
+
accept = g_array_new (FALSE, FALSE, sizeof (TpHandle));
for (i = 0; i < added->len; i++) {
TpHandle handle = g_array_index (added, TpHandle, i);