From: Guillaume Desmottes Date: Fri, 10 Feb 2012 13:53:40 +0000 (+0100) Subject: empathy-chat: use empathy_ensure_individual_from_tp_contact() X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=fac52e2c170e94ecad67f3087a462baf9ba5f49e empathy-chat: use empathy_ensure_individual_from_tp_contact() This ensures we'll pass the right individual ID to gnome-contacts when opening a meta-contact. https://bugzilla.gnome.org/show_bug.cgi?id=669676 --- diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 5b2cca92..c5b4adf3 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -4169,7 +4169,8 @@ empathy_chat_get_contact_menu (EmpathyChat *chat) if (contact == NULL) return NULL; - individual = empathy_create_individual_from_tp_contact (contact); + individual = empathy_ensure_individual_from_tp_contact (contact); + if (individual == NULL) return NULL;