[empathy: 93/148] Don't claim outgoing channels



commit 5756b9d02b60f1421abbca71624fc82ef469227a
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date:   Fri May 15 20:19:19 2009 +0200

    Don't claim outgoing channels
---
 src/empathy.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/empathy.c b/src/empathy.c
index 3bed5ce..0b22c72 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -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);
+		}
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]