From 4a1cece4951911afba0456ee23730328f635d1b3 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 15 Feb 2008 21:29:16 +0000 Subject: Add self contact to the group iface of media channel. svn path=/trunk/; revision=634 --- libempathy/empathy-utils.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index 8c6edafc5..070e45a0e 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -401,14 +401,16 @@ void empathy_call_with_contact (EmpathyContact *contact) { #ifdef HAVE_VOIP - MissionControl *mc; - McAccount *account; - TpConn *tp_conn; - gchar *object_path; - const gchar *bus_name; - TpChan *new_chan; - EmpathyTpGroup *group; - GError *error = NULL; + MissionControl *mc; + McAccount *account; + TpConn *tp_conn; + gchar *object_path; + const gchar *bus_name; + TpChan *new_chan; + EmpathyContactFactory *factory; + EmpathyTpGroup *group; + EmpathyContact *self_contact; + GError *error = NULL; g_return_if_fail (EMPATHY_IS_CONTACT (contact)); @@ -446,8 +448,13 @@ empathy_call_with_contact (EmpathyContact *contact) 0); group = empathy_tp_group_new (account, new_chan); + factory = empathy_contact_factory_new (); + self_contact = empathy_contact_factory_get_user (factory, account); empathy_tp_group_add_member (group, contact, ""); + empathy_tp_group_add_member (group, self_contact, ""); + g_object_unref (factory); + g_object_unref (self_contact); g_object_unref (group); g_object_unref (mc); g_object_unref (tp_conn); -- cgit v1.2.3