Fixed proxy config lime server set on upgrade wrong condition

This commit is contained in:
Sylvain Berfini 2019-04-04 09:52:46 +02:00
parent 4b975a89d4
commit b2e904a6f9

View file

@ -754,10 +754,8 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
// Migrate existing linphone accounts to have conference factory uri and LIME X3Dh url set
String uri = getString(R.string.default_conference_factory_uri);
for (ProxyConfig lpc : mCore.getProxyConfigList()) {
if (lpc.getConferenceFactoryUri() == null
&& lpc.getIdentityAddress()
.getDomain()
.equals(getString(R.string.default_domain))) {
if (lpc.getIdentityAddress().getDomain().equals(getString(R.string.default_domain))) {
if (lpc.getConferenceFactoryUri() == null) {
lpc.edit();
Log.i(
"[Manager] Setting conference factory on proxy config "
@ -777,6 +775,7 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
}
}
}
}
if (mServiceContext.getResources().getBoolean(R.bool.enable_push_id)) {
initPushNotificationsService();