From 41dd78c073ce681aa764f7d843565afd0de80cee Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 31 Oct 2018 19:13:08 -0700 Subject: [PATCH] On fetch of profileAvatar, set it to convo's profileAvatar field --- js/modules/types/conversation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/modules/types/conversation.js b/js/modules/types/conversation.js index 1a0a8fc5a..29ec499f4 100644 --- a/js/modules/types/conversation.js +++ b/js/modules/types/conversation.js @@ -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), },