aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-07-06 19:32:21 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-07-06 19:32:21 +0800
commitb5e9f28beaa02f564016b30e173adb36e6279642 (patch)
treec426175deeb764e0341d70f7181ee7964a431cc7
parentc17ffb62ebc6e69071e0a0380b2402ba8201bb83 (diff)
downloadgsoc2013-empathy-b5e9f28beaa02f564016b30e173adb36e6279642.tar
gsoc2013-empathy-b5e9f28beaa02f564016b30e173adb36e6279642.tar.gz
gsoc2013-empathy-b5e9f28beaa02f564016b30e173adb36e6279642.tar.bz2
gsoc2013-empathy-b5e9f28beaa02f564016b30e173adb36e6279642.tar.lz
gsoc2013-empathy-b5e9f28beaa02f564016b30e173adb36e6279642.tar.xz
gsoc2013-empathy-b5e9f28beaa02f564016b30e173adb36e6279642.tar.zst
gsoc2013-empathy-b5e9f28beaa02f564016b30e173adb36e6279642.zip
Revert "no need to specify each time of handle"
This reverts commit d88eaef098d3afc329266f25ce194c6dfebbc979.
-rw-r--r--data/Empathy.client9
-rw-r--r--src/empathy-chat-manager.c11
2 files changed, 20 insertions, 0 deletions
diff --git a/data/Empathy.client b/data/Empathy.client
index eda372b80..3d0bd91fa 100644
--- a/data/Empathy.client
+++ b/data/Empathy.client
@@ -3,3 +3,12 @@ Interfaces=org.freedesktop.Telepathy.Client.Handler
[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 0]
org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.Text
+org.freedesktop.Telepathy.Channel.TargetHandleType u=0
+
+[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 1]
+org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.Text
+org.freedesktop.Telepathy.Channel.TargetHandleType u=1
+
+[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 2]
+org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.Text
+org.freedesktop.Telepathy.Channel.TargetHandleType u=2
diff --git a/src/empathy-chat-manager.c b/src/empathy-chat-manager.c
index c8d5891f6..1b103031b 100644
--- a/src/empathy-chat-manager.c
+++ b/src/empathy-chat-manager.c
@@ -251,6 +251,17 @@ empathy_chat_manager_init (EmpathyChatManager *self)
tp_base_client_take_handler_filter (priv->handler, tp_asv_new (
TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_TEXT,
+ TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_CONTACT,
+ NULL));
+
+ tp_base_client_take_handler_filter (priv->handler, tp_asv_new (
+ TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_TEXT,
+ TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_ROOM,
+ NULL));
+
+ tp_base_client_take_handler_filter (priv->handler, tp_asv_new (
+ TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_TEXT,
+ TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_NONE,
NULL));
if (!tp_base_client_register (priv->handler, &error))