From a56bf15a5dca91b8b7bce593c939ec6404ae37b6 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sat, 8 May 2010 15:28:47 +0100 Subject: If there is no publish list, don't auto-add people to it --- libempathy/empathy-tp-contact-list.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libempathy') 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); -- cgit v1.2.3