[empathy] If there is no publish list, don't auto-add people to it



commit a56bf15a5dca91b8b7bce593c939ec6404ae37b6
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Sat May 8 15:28:47 2010 +0100

    If there is no publish list, don't auto-add people to it

 libempathy/empathy-tp-contact-list.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index f219794..f8d8971 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]