mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Fixed contacts not updated with LDAP results if latest query fails
This commit is contained in:
parent
a816a956b8
commit
3cec19126d
1 changed files with 1 additions and 2 deletions
|
|
@ -96,8 +96,6 @@ class ContactsManager
|
|||
private val magicSearchListener = object : MagicSearchListenerStub() {
|
||||
@WorkerThread
|
||||
override fun onSearchResultsReceived(magicSearch: MagicSearch) {
|
||||
reloadRemoteContactsJob?.cancel()
|
||||
|
||||
var queriedSipUri = ""
|
||||
for ((key, value) in magicSearchMap.entries) {
|
||||
if (value == magicSearch) {
|
||||
|
|
@ -121,6 +119,7 @@ class ContactsManager
|
|||
Log.w("$TAG Received friend [${friend.name}] with SIP URI [$address] doesn't match queried SIP URI [$queriedSipUri]")
|
||||
} else {
|
||||
found = true
|
||||
reloadRemoteContactsJob?.cancel()
|
||||
|
||||
// Store friend in app's cache to be re-used in call history, conversations, etc...
|
||||
val temporaryFriendList = getRemoteContactDirectoriesCacheFriendList()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue