Fixed proxy config lime server set on upgrade wrong condition
This commit is contained in:
parent
4b975a89d4
commit
b2e904a6f9
1 changed files with 18 additions and 19 deletions
|
@ -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
|
// Migrate existing linphone accounts to have conference factory uri and LIME X3Dh url set
|
||||||
String uri = getString(R.string.default_conference_factory_uri);
|
String uri = getString(R.string.default_conference_factory_uri);
|
||||||
for (ProxyConfig lpc : mCore.getProxyConfigList()) {
|
for (ProxyConfig lpc : mCore.getProxyConfigList()) {
|
||||||
if (lpc.getConferenceFactoryUri() == null
|
if (lpc.getIdentityAddress().getDomain().equals(getString(R.string.default_domain))) {
|
||||||
&& lpc.getIdentityAddress()
|
if (lpc.getConferenceFactoryUri() == null) {
|
||||||
.getDomain()
|
|
||||||
.equals(getString(R.string.default_domain))) {
|
|
||||||
lpc.edit();
|
lpc.edit();
|
||||||
Log.i(
|
Log.i(
|
||||||
"[Manager] Setting conference factory on proxy config "
|
"[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)) {
|
if (mServiceContext.getResources().getBoolean(R.bool.enable_push_id)) {
|
||||||
initPushNotificationsService();
|
initPushNotificationsService();
|
||||||
|
|
Loading…
Reference in a new issue