Fixed our own avatar not updated in meetings & conversations after being changed

This commit is contained in:
Sylvain Berfini 2024-08-06 15:46:59 +02:00
parent a136b7da8b
commit f29f5f9bc7

View file

@ -277,6 +277,13 @@ class AccountProfileViewModel @UiThread constructor() : GenericViewModel() {
newModel.picturePath.postValue(path)
accountModel.postValue(newModel)
// Also update friend & contact avatar model for ourselves
val model = coreContext.contactsManager.getContactAvatarModelForAddress(
params.identityAddress
)
model.friend.photo = path
model.picturePath.postValue(path)
account.params = copy
account.refreshRegister()
}