From fac52e2c170e94ecad67f3087a462baf9ba5f49e Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 10 Feb 2012 14:53:40 +0100 Subject: 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 --- libempathy-gtk/empathy-chat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 5b2cca929..c5b4adf3f 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; -- cgit v1.2.3