[telepathy-gabble/master] Even if the protocol doesn't have a concept of senders keep our internal state consistent
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Mon Dec 14 06:54:10 PST 2009
---
src/jingle-content.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/jingle-content.c b/src/jingle-content.c
index f592beb..0b38113 100644
--- a/src/jingle-content.c
+++ b/src/jingle-content.c
@@ -962,14 +962,18 @@ gabble_jingle_content_change_direction (GabbleJingleContent *c,
LmMessageNode *sess_node;
JingleDialect dialect = gabble_jingle_session_get_dialect (c->session);
+ if (senders == priv->senders)
+ return TRUE;
+
+ priv->senders = senders;
+ g_object_notify (G_OBJECT (c), "senders");
+
if (JINGLE_IS_GOOGLE_DIALECT (dialect))
{
DEBUG ("ignoring direction change request for GTalk stream");
return FALSE;
}
- priv->senders = senders;
-
msg = gabble_jingle_session_new_message (c->session,
JINGLE_ACTION_CONTENT_MODIFY, &sess_node);
gabble_jingle_content_produce_node (c, sess_node, FALSE, FALSE, NULL);
--
1.5.6.5
More information about the telepathy-commits
mailing list