On fetch of profileAvatar, set it to convo's profileAvatar field
This commit is contained in:
parent
3f3c63a46f
commit
41dd78c073
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ function buildAvatarUpdater({ field }) {
|
|||
if (!avatar || !avatar.hash) {
|
||||
return {
|
||||
...conversation,
|
||||
avatar: {
|
||||
[field]: {
|
||||
hash: newHash,
|
||||
path: await writeNewAttachmentData(data),
|
||||
},
|
||||
|
@ -50,7 +50,7 @@ function buildAvatarUpdater({ field }) {
|
|||
|
||||
return {
|
||||
...conversation,
|
||||
avatar: {
|
||||
[field]: {
|
||||
hash: newHash,
|
||||
path: await writeNewAttachmentData(data),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue