aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2010-12-15 00:31:57 +0800
committerJonny Lamb <jonnylamb@gnome.org>2010-12-15 00:32:41 +0800
commit483c580a8b6aa2c0b4205e3cb2c674e80abe5ba7 (patch)
treedd87bd0119dc2d51a506e6cae39a28f17a971518
parent6093afb467c0c2ae855d8635d9a10e9bc5f072c4 (diff)
downloadgsoc2013-empathy-483c580a8b6aa2c0b4205e3cb2c674e80abe5ba7.tar
gsoc2013-empathy-483c580a8b6aa2c0b4205e3cb2c674e80abe5ba7.tar.gz
gsoc2013-empathy-483c580a8b6aa2c0b4205e3cb2c674e80abe5ba7.tar.bz2
gsoc2013-empathy-483c580a8b6aa2c0b4205e3cb2c674e80abe5ba7.tar.lz
gsoc2013-empathy-483c580a8b6aa2c0b4205e3cb2c674e80abe5ba7.tar.xz
gsoc2013-empathy-483c580a8b6aa2c0b4205e3cb2c674e80abe5ba7.tar.zst
gsoc2013-empathy-483c580a8b6aa2c0b4205e3cb2c674e80abe5ba7.zip
auth-factory: add a comment as to why we're also an approver
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
-rw-r--r--libempathy/empathy-auth-factory.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy/empathy-auth-factory.c b/libempathy/empathy-auth-factory.c
index 59c256e7a..443962a7c 100644
--- a/libempathy/empathy-auth-factory.c
+++ b/libempathy/empathy-auth-factory.c
@@ -475,6 +475,12 @@ empathy_auth_factory_constructed (GObject *obj)
G_TYPE_STRING, TP_IFACE_CHANNEL_INTERFACE_SASL_AUTHENTICATION,
NULL));
+ /* We are also an observer so that we can see new auth channels
+ * popping up and if we have the password already saved to one
+ * account where an auth channel has just appeared we can call
+ * Claim() on the CDO so the approver won't get it, which makes
+ * sense. */
+
tp_base_client_take_observer_filter (client, tp_asv_new (
/* ChannelType */
TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,