pidgin/pidgin

jingle: always reply with senders set to both
jingle-reply-with-senders-both
15 months ago, Fabrice Bellet
5f0789584446
jingle: always reply with senders set to both
--- a/libpurple/protocols/jabber/jingle/jingle.c Sun Nov 10 09:52:48 2019 +0000
+++ b/libpurple/protocols/jabber/jingle/jingle.c Fri Nov 08 18:20:51 2019 +0100
@@ -233,6 +233,13 @@
"unsupported-applications"));
} else {
jingle_session_add_content(session, parsed_content);
+ /* since we don't have the possibility to enable
+ * our local video after the video connection is
+ * established, we ignore senders of type
+ * 'initiator', and reply with senders of type
+ * 'both' instead.
+ */
+ jingle_content_modify(parsed_content, "both");
jingle_content_handle_action(parsed_content, content,
JINGLE_SESSION_INITIATE);
}