From e1d76341e84037b4c58bbb3d3b36769fc26d209c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 6 Feb 2024 19:08:01 +0300 Subject: =?UTF-8?q?fixes=20#4174=20(Jingle:=20=D0=BE=D0=BF=D1=86=D0=B8?= =?UTF-8?q?=D1=8F=20"Enable=20VOIP"=20=D0=BE=D1=82=D1=81=D1=83=D1=82=D1=81?= =?UTF-8?q?=D1=82=D0=B2=D1=83=D0=B5=D1=82=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=B4=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD=D0=B0=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BB=D0=B5=D1=82=D1=83,=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=B2?= =?UTF-8?q?=20=D0=B1=D0=B0=D0=B7=D0=B5=20=D1=83=D0=B6=D0=B5=20=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BA=D0=BB=D1=8E=D1=87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/JabberG/src/jabber_opt.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index f3ab8696c4..57f048c761 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -707,8 +707,6 @@ public: m_options.AddOption(LPGENW("Messaging"), LPGENW("Enable carbon copies (XEP-0280)"), proto->m_bEnableCarbons); if (mir_strlen(ptrA(proto->getStringA("HttpUpload")))) m_options.AddOption(LPGENW("Messaging"), LPGENW("Enable HTTP File Upload (XEP-0363)"), proto->m_bUseHttpUpload); - if (proto->FindFeature(JABBER_FEAT_JINGLE)) - m_options.AddOption(LPGENW("Messaging"), LPGENW("Enable VOIP (experimental)"), proto->m_bEnableVOIP); m_options.AddOption(LPGENW("Server options"), LPGENW("Use Stream Management (XEP-0198)"), proto->m_bEnableStreamMgmt); m_options.AddOption(LPGENW("Server options"), LPGENW("Disable SASL authentication (for old servers)"), proto->m_bDisable3920auth); @@ -734,6 +732,9 @@ public: { CSuper::OnInitDialog(); + if (m_proto->FindFeature(JABBER_FEAT_JINGLE)) + m_options.AddOption(LPGENW("Messaging"), LPGENW("Enable VOIP (experimental)"), m_proto->m_bEnableVOIP); + chkDirect_OnChange(&m_chkDirect); return true; } -- cgit v1.2.3