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

pull/27/head^2
Scott Nonnenberg 7 years ago
parent 3f3c63a46f
commit 41dd78c073

@ -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),
}, },

Loading…
Cancel
Save