mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-27 18:56:21 +00:00
Fixed our own avatar not updated in meetings & conversations after being changed
This commit is contained in:
parent
a136b7da8b
commit
f29f5f9bc7
1 changed files with 7 additions and 0 deletions
|
|
@ -277,6 +277,13 @@ class AccountProfileViewModel @UiThread constructor() : GenericViewModel() {
|
||||||
newModel.picturePath.postValue(path)
|
newModel.picturePath.postValue(path)
|
||||||
accountModel.postValue(newModel)
|
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.params = copy
|
||||||
account.refreshRegister()
|
account.refreshRegister()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue