Removed useless code
This commit is contained in:
parent
611fe4cf29
commit
6839c53e6c
2 changed files with 0 additions and 15 deletions
|
@ -49,18 +49,6 @@ class AsyncContactsLoader(private val context: Context) :
|
||||||
override fun onPreExecute() {
|
override fun onPreExecute() {
|
||||||
if (isCancelled) return
|
if (isCancelled) return
|
||||||
Log.i("[Contacts Loader] Synchronization started")
|
Log.i("[Contacts Loader] Synchronization started")
|
||||||
|
|
||||||
val core = coreContext.core
|
|
||||||
if (core.isFriendListSubscriptionEnabled) {
|
|
||||||
val rls: String = corePreferences.rlsUri
|
|
||||||
for (list in core.friendsLists) {
|
|
||||||
val rlsAddress = list.rlsAddress
|
|
||||||
if (rlsAddress == null || rlsAddress.asStringUriOnly() != rls) {
|
|
||||||
Log.i("[Contacts Loader] Friend list RLS URI updated to: $rls")
|
|
||||||
list.rlsUri = rls
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun doInBackground(vararg args: Void): AsyncContactsData {
|
override fun doInBackground(vararg args: Void): AsyncContactsData {
|
||||||
|
|
|
@ -274,9 +274,6 @@ class CorePreferences constructor(private val context: Context) {
|
||||||
val hideContactsWithoutPresence: Boolean
|
val hideContactsWithoutPresence: Boolean
|
||||||
get() = config.getBool("app", "hide_contacts_without_presence", false)
|
get() = config.getBool("app", "hide_contacts_without_presence", false)
|
||||||
|
|
||||||
val rlsUri: String
|
|
||||||
get() = config.getString("app", "rls_uri", "sip:rls@sip.linphone.org")!!
|
|
||||||
|
|
||||||
val conferenceServerUri: String
|
val conferenceServerUri: String
|
||||||
get() = config.getString(
|
get() = config.getString(
|
||||||
"app",
|
"app",
|
||||||
|
|
Loading…
Reference in a new issue