Force contacts reload after adding/removing CardDAV account

This commit is contained in:
Sylvain Berfini 2024-07-10 09:56:47 +02:00
parent 0cfdedc09a
commit 949d870d7e

View file

@ -79,6 +79,10 @@ class CardDavViewModel : GenericViewModel() {
)
)
)
Log.i("$TAG Notifying contacts manager that contacts have changed")
coreContext.contactsManager.notifyContactsListChanged()
syncSuccessfulEvent.postValue(Event(true))
}
FriendList.SyncStatus.Failure -> {
@ -150,6 +154,10 @@ class CardDavViewModel : GenericViewModel() {
)
)
)
Log.i("$TAG Notifying contacts manager that contacts have changed")
coreContext.contactsManager.notifyContactsListChanged()
friendListRemovedEvent.postValue(Event(true))
}
}