diff options
Diffstat (limited to 'libempathy/empathy-tp-chat.c')
-rw-r--r-- | libempathy/empathy-tp-chat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index aebeb6670..c1a70b6ca 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -986,6 +986,7 @@ tp_chat_got_renamed_contacts_cb (EmpathyTpContactFactory *factory, const TpIntSet *members; TpHandle handle; EmpathyContact *old = NULL, *new = NULL; + ContactRenameData *rename_data = (ContactRenameData*) user_data; if (error) { DEBUG ("Error: %s", error->message); @@ -995,8 +996,6 @@ tp_chat_got_renamed_contacts_cb (EmpathyTpContactFactory *factory, /* renamed members can only be delivered one at a time */ g_warn_if_fail (n_contacts == 1); - ContactRenameData *rename_data = (ContactRenameData*) user_data; - new = contacts[0]; members = tp_channel_group_get_members (priv->channel); @@ -1039,6 +1038,7 @@ tp_chat_group_members_changed_cb (TpChannel *self, EmpathyContact *actor_contact = NULL; guint i; ContactRenameData *rename_data; + TpHandle old_handle; /* Contact renamed */ if (reason == TP_CHANNEL_GROUP_CHANGE_REASON_RENAMED) { @@ -1046,7 +1046,7 @@ tp_chat_group_members_changed_cb (TpChannel *self, g_warn_if_fail(removed->len == 1); g_warn_if_fail(added->len == 1); - TpHandle old_handle = g_array_index (removed, guint, 0); + old_handle = g_array_index (removed, guint, 0); rename_data = contact_rename_data_new (old_handle, reason, message); empathy_tp_contact_factory_get_from_handles (priv->factory, |