mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Decorrelate Lime state option from media encryption.
This commit is contained in:
parent
d68b0d32a2
commit
19de0a5d6c
1 changed files with 1 additions and 7 deletions
|
|
@ -983,9 +983,6 @@ void SettingsModel::setMediaEncryption (MediaEncryption encryption) {
|
|||
if (encryption == getMediaEncryption())
|
||||
return;
|
||||
|
||||
if (encryption != SettingsModel::MediaEncryptionZrtp)
|
||||
setLimeState(false);
|
||||
|
||||
CoreManager::getInstance()->getCore()->setMediaEncryption(
|
||||
static_cast<linphone::MediaEncryption>(encryption)
|
||||
);
|
||||
|
|
@ -1028,10 +1025,7 @@ void SettingsModel::setLimeState (const bool& state) {
|
|||
if (state == getLimeState())
|
||||
return;
|
||||
|
||||
if (state)
|
||||
setMediaEncryption(SettingsModel::MediaEncryptionZrtp);
|
||||
|
||||
CoreManager::getInstance()->getCore()->enableLimeX3Dh(!state);
|
||||
CoreManager::getInstance()->getCore()->enableLimeX3Dh(state);
|
||||
|
||||
emit limeStateChanged(state);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue