summaryrefslogtreecommitdiff
path: root/src/jingle-content.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2009-06-23 18:50:52 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2009-06-23 18:51:27 +0100
commitcb6b1e30815cbbab4125ff72cc04db35f68697c5 (patch)
tree22e332e8c4d80820e85ba830d537dac1f9b920a1 /src/jingle-content.c
parent3956d4f8437eaf14038064e4f4a5041bd8980ec4 (diff)
downloadtelepathy-gabble-cb6b1e30815cbbab4125ff72cc04db35f68697c5.tar.gz
Don't send description-info with old dialects
Diffstat (limited to 'src/jingle-content.c')
-rw-r--r--src/jingle-content.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/jingle-content.c b/src/jingle-content.c
index 645a8f660..b5afe9eb2 100644
--- a/src/jingle-content.c
+++ b/src/jingle-content.c
@@ -860,18 +860,25 @@ void
gabble_jingle_content_maybe_send_description (GabbleJingleContent *self)
{
GabbleJingleContentPrivate *priv = self->priv;
- LmMessage *msg;
- LmMessageNode *sess_node;
/* If we didn't send the content yet there is no reason to send a
* description-info to update it */
if (priv->state < JINGLE_CONTENT_STATE_SENT)
return;
- msg = gabble_jingle_session_new_message (self->session,
- JINGLE_ACTION_DESCRIPTION_INFO, &sess_node);
- gabble_jingle_content_produce_node (self, sess_node, TRUE, TRUE, NULL);
- gabble_jingle_session_send (self->session, msg, NULL, NULL);
+ if (gabble_jingle_session_get_dialect (self->session) == JINGLE_DIALECT_V032)
+ {
+ LmMessageNode *sess_node;
+ LmMessage *msg = gabble_jingle_session_new_message (self->session,
+ JINGLE_ACTION_DESCRIPTION_INFO, &sess_node);
+
+ gabble_jingle_content_produce_node (self, sess_node, TRUE, TRUE, NULL);
+ gabble_jingle_session_send (self->session, msg, NULL, NULL);
+ }
+ else
+ {
+ DEBUG ("not sending description-info, speaking an old dialect");
+ }
}