On fetch of profileAvatar, set it to convo's profileAvatar field

This commit is contained in:
Scott Nonnenberg 2018-10-31 19:13:08 -07:00
parent 3f3c63a46f
commit 41dd78c073

View file

@ -33,7 +33,7 @@ function buildAvatarUpdater({ field }) {
if (!avatar || !avatar.hash) { if (!avatar || !avatar.hash) {
return { return {
...conversation, ...conversation,
avatar: { [field]: {
hash: newHash, hash: newHash,
path: await writeNewAttachmentData(data), path: await writeNewAttachmentData(data),
}, },
@ -50,7 +50,7 @@ function buildAvatarUpdater({ field }) {
return { return {
...conversation, ...conversation,
avatar: { [field]: {
hash: newHash, hash: newHash,
path: await writeNewAttachmentData(data), path: await writeNewAttachmentData(data),
}, },