Fixed app reloading lists too many times at startup when looking for friends in remote contact directories such as LDAP/CardDAV

This commit is contained in:
Sylvain Berfini 2025-05-05 14:49:07 +02:00
parent ac4b04f054
commit fe54a847c6
2 changed files with 1 additions and 1 deletions

View file

@ -348,7 +348,6 @@ class ContactsManager
for (sipAddress in friend.addresses) {
newContactAddedWithSipUri(friend, sipAddress.asStringUriOnly())
}
notifyContactsListChanged()
}
@WorkerThread

View file

@ -250,6 +250,7 @@ class ContactNewOrEditViewModel
}
coreContext.contactsManager.newContactAdded(friend)
coreContext.contactsManager.notifyContactsListChanged()
saveChangesEvent.postValue(
Event(if (status == Status.OK) friend.refKey.orEmpty() else "")