enBloc-org / kindly

GNU General Public License v3.0
17 stars 22 forks source link

Preserve formatting in new messages #154

Closed camelPhonso closed 5 months ago

camelPhonso commented 5 months ago

Expected Behaviour

If a user uses the MessageForm.tsx component to create a new message it should be displayed in CurrentConversation.tsx with the same formatting as it was submitted. For example, a user should be able to submit a text with the following format:

Hey,

How've you been?

Dad.

Current Behaviour

When a user submits a new message through the MessageForm.tsx component it gets formatted into a single line of text.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Navigate to your conversations
  2. Open any conversation
  3. Type a message that includes an empty line or indentations
  4. Once sent, the message will show as a single line of text
JasonWarrenUK commented 5 months ago

@camelPhonso Can you assign this issue to me?

JasonWarrenUK commented 5 months ago

Okay so at this point the message is definitely being correctly transmitted right up to CurrentConversation.tsx and I'm now pretty sure the problem is within the MessageCard bits.