Replaced old URLs by new ones

This commit is contained in:
Sylvain Berfini 2024-12-03 15:06:30 +01:00
parent d80b023918
commit 46dc7355b2
3 changed files with 19 additions and 5 deletions

View file

@ -35,9 +35,9 @@ host=
port=443
[misc]
log_collection_upload_server_url=https://www.linphone.org:444/lft.php
file_transfer_server_url=https://www.linphone.org:444/lft.php
version_check_url_root=https://www.linphone.org/releases
log_collection_upload_server_url=https://files.linphone.org/http-file-transfer-server/hft.php
file_transfer_server_url=https://files.linphone.org/http-file-transfer-server/hft.php
version_check_url_root=https://download.linphone.org/releases
max_calls=10
history_max_size=100
conference_layout=1

View file

@ -484,6 +484,17 @@ class CoreContext @UiThread constructor(val context: Context) : HandlerThread("C
// Add that flag back, was disabled for a time during dev process
core.config.setBool("misc", "hide_empty_chat_rooms", true)
// Replace old URLs by new ones
if (corePreferences.checkForUpdateServerUrl == "https://www.linphone.org/releases") {
corePreferences.checkForUpdateServerUrl = "https://download.linphone.org/releases"
}
if (core.fileTransferServer == "https://www.linphone.org:444/lft.php") {
core.fileTransferServer = "https://files.linphone.org/http-file-transfer-server/hft.php"
}
if (core.logCollectionUploadServerUrl == "https://www.linphone.org:444/lft.php") {
core.logCollectionUploadServerUrl = "https://files.linphone.org/http-file-transfer-server/hft.php"
}
}
corePreferences.linphoneConfigurationVersion = currentVersion

View file

@ -65,9 +65,12 @@ class CorePreferences @UiThread constructor(private val context: Context) {
config.setInt("app", "config_version", value)
}
@get:WorkerThread
val checkForUpdateServerUrl: String
@get:WorkerThread @set:WorkerThread
var checkForUpdateServerUrl: String
get() = config.getString("misc", "version_check_url_root", "").orEmpty()
set(value) {
config.setString("misc", "version_check_url_root", value)
}
@get:WorkerThread @set:WorkerThread
var conditionsAndPrivacyPolicyAccepted: Boolean