aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-02-16 05:29:16 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-02-16 05:29:16 +0800
commit4a1cece4951911afba0456ee23730328f635d1b3 (patch)
treed4b115fcf4477a4a1c99174cf78ef57b8aec615d
parent635876291e5e3277f979c1b0b413ee0c51b469fe (diff)
downloadgsoc2013-empathy-4a1cece4951911afba0456ee23730328f635d1b3.tar
gsoc2013-empathy-4a1cece4951911afba0456ee23730328f635d1b3.tar.gz
gsoc2013-empathy-4a1cece4951911afba0456ee23730328f635d1b3.tar.bz2
gsoc2013-empathy-4a1cece4951911afba0456ee23730328f635d1b3.tar.lz
gsoc2013-empathy-4a1cece4951911afba0456ee23730328f635d1b3.tar.xz
gsoc2013-empathy-4a1cece4951911afba0456ee23730328f635d1b3.tar.zst
gsoc2013-empathy-4a1cece4951911afba0456ee23730328f635d1b3.zip
Add self contact to the group iface of media channel.
svn path=/trunk/; revision=634
-rw-r--r--libempathy/empathy-utils.c23
1 files 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);