aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-chat-manager.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-11 20:48:40 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-11 20:48:40 +0800
commit72e7c137e1ce5f45c93583540b04fc106b2656d1 (patch)
treecd677ec06bbbfbe53506e706be9e40497ffa3859 /src/empathy-chat-manager.c
parent8a8ba7a5697c6e5494854c99dc9aa4a7fc7a45bd (diff)
downloadgsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar.gz
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar.bz2
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar.lz
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar.xz
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.tar.zst
gsoc2013-empathy-72e7c137e1ce5f45c93583540b04fc106b2656d1.zip
empathy_dispatcher_chat_with_contact_id: get a TpAccount instead of a TpConnection
Diffstat (limited to 'src/empathy-chat-manager.c')
-rw-r--r--src/empathy-chat-manager.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/empathy-chat-manager.c b/src/empathy-chat-manager.c
index 0a16be90d..a3177a3f7 100644
--- a/src/empathy-chat-manager.c
+++ b/src/empathy-chat-manager.c
@@ -21,6 +21,7 @@
#include <libempathy/empathy-chatroom-manager.h>
#include <libempathy/empathy-dispatcher.h>
+#include <libempathy/empathy-utils.h>
#include "empathy-chat-window.h"
@@ -385,13 +386,16 @@ connection_ready_cb (TpConnection *connection,
priv = GET_PRIV (self);
+ /* FIXME: Once empathy_dispatcher_join_muc will take a TpAccount instead of
+ * a TpConnection we won't have to prepare the connection any more. */
if (error == NULL)
{
if (data->room)
empathy_dispatcher_join_muc (connection, data->id,
EMPATHY_DISPATCHER_NON_USER_ACTION);
else
- empathy_dispatcher_chat_with_contact_id (connection, data->id,
+ empathy_dispatcher_chat_with_contact_id (
+ empathy_get_account_for_connection (connection), data->id,
EMPATHY_DISPATCHER_NON_USER_ACTION);
g_signal_emit (self, signals[CHATS_CHANGED], 0,