aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-dispatcher.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index 5f26eeeed..2b965d417 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -371,6 +371,15 @@ dispatcher_tubes_handle_channel (EmpathyDispatcher *dispatcher,
}
static void
+dispatcher_file_handle_channel (EmpathyDispatcher *dispatcher,
+ TpChannel *channel)
+{
+ DEBUG ("New file channel");
+
+ /* handle new file channel here */
+}
+
+static void
dispatcher_connection_invalidated_cb (TpConnection *connection,
guint domain,
gint code,
@@ -473,6 +482,8 @@ dispatcher_connection_new_channel_cb (TpConnection *connection,
if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TUBES)) {
dispatcher_tubes_handle_channel (dispatcher, channel);
+ } else if (!tp_strdiff (channel_type, EMP_IFACE_CHANNEL_TYPE_FILE)) {
+ dispatcher_file_handle_channel (dispatcher, channel);
}
if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TEXT) &&