fix update disable meetings feature setting when default account changes #LINQT-2334

This commit is contained in:
Gaelle Braud 2026-01-12 15:26:02 +01:00
parent 1a69b68456
commit b19420afa9

View file

@ -76,11 +76,17 @@ SettingsModel::SettingsModel() {
if (!getDisableMeetingsFeature() && account &&
!account->getParams()->getAudioVideoConferenceFactoryAddress())
setDisableMeetingsFeature(true);
else if (getDisableMeetingsFeature() && account &&
account->getParams()->getAudioVideoConferenceFactoryAddress())
setDisableMeetingsFeature(false);
});
auto defaultAccount = core->getDefaultAccount();
if (!getDisableMeetingsFeature() && defaultAccount &&
!defaultAccount->getParams()->getAudioVideoConferenceFactoryAddress())
setDisableMeetingsFeature(true);
else if (getDisableMeetingsFeature() && defaultAccount &&
defaultAccount->getParams()->getAudioVideoConferenceFactoryAddress())
setDisableMeetingsFeature(false);
// Media cards must not be used twice (capture card + call) else we will get latencies issues and bad echo
// calibrations in call.