From 309921523cbdf9b1a4f3c58e0e6aea12a5b5111c Mon Sep 17 00:00:00 2001 From: Zaven Arra Date: Fri, 11 Mar 2022 15:46:19 -0800 Subject: [PATCH] fix: remove subject from normal message --- src/components/Messaging/MessageBody.js | 1 - src/components/Messaging/NewMessage.js | 1 - src/context/MessagingContext.js | 1 - 3 files changed, 3 deletions(-) diff --git a/src/components/Messaging/MessageBody.js b/src/components/Messaging/MessageBody.js index 3c8a04dfc..01383faf2 100644 --- a/src/components/Messaging/MessageBody.js +++ b/src/components/Messaging/MessageBody.js @@ -479,7 +479,6 @@ const MessageBody = ({ messages, messageRecipient, avatar }) => { parent_message_id: lastMessage.id ? lastMessage.id : null, author_handle: user.userName, recipient_handle: messageRecipient, - subject: 'Message', //temporarily hard-coded until we know what we want type: 'message', body: messageContent, }; diff --git a/src/components/Messaging/NewMessage.js b/src/components/Messaging/NewMessage.js index 569f6f475..c7e57ec4f 100644 --- a/src/components/Messaging/NewMessage.js +++ b/src/components/Messaging/NewMessage.js @@ -84,7 +84,6 @@ const NewMessage = ({ openModal, handleClose }) => { const messagePayload = { author_handle: user.userName, recipient_handle: recipient, - subject: 'Message', type: 'message', body: messageContent, }; diff --git a/src/context/MessagingContext.js b/src/context/MessagingContext.js index f6e647907..9c29da5a8 100644 --- a/src/context/MessagingContext.js +++ b/src/context/MessagingContext.js @@ -156,7 +156,6 @@ export const MessagingProvider = (props) => { const payload = { body: '', from: user.userName, - subject: 'Message', to: grower.phone ? grower.phone : grower.email, };