]> git.0d.be Git - empathy.git/commitdiff
Don't claim outgoing channels
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>
Fri, 15 May 2009 18:19:19 +0000 (20:19 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 1 Jun 2009 15:53:18 +0000 (17:53 +0200)
src/empathy.c

index 3bed5ce7a5332f21a77637b118c9dfc48f649595..0b22c72f171a1a07ac8c5d940f1d08060c6c1b83 100644 (file)
@@ -133,7 +133,14 @@ dispatch_cb (EmpathyDispatcher *dispatcher,
                EmpathyFTFactory *factory;
 
                factory = empathy_ft_factory_dup_singleton ();
-               empathy_ft_factory_claim_channel (factory, operation);
+
+               /* if the operation is not incoming, don't claim it,
+                * as it might have been triggered by another client, and
+                * we are observing it.
+                */
+               if (empathy_dispatch_operation_is_incoming (operation)) {
+                       empathy_ft_factory_claim_channel (factory, operation);
+               }
        }
 }