]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-contact-list.c
If there is no publish list, don't auto-add people to it
[empathy.git] / libempathy / empathy-tp-contact-list.c
index f2197949570831f2d43c6207256bd51946f8cb50..f8d8971852ac62d7289c25d15ffcaebf6761b5c2 100644 (file)
@@ -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);