Skip to content

Commit

Permalink
TW-2145: Add ADR improve for getEventContentFromMsgText func
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev authored and hoangdat committed Dec 9, 2024
1 parent 02b8abb commit 345aab0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/adr/0003-improve-get-event-content-from-message-text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 3. 0003-improve-get-event-content-from-message-text.md

Date: 2024-12-08

## Status

Accepted

## Context

- The current implementation includes parsing the message for markdown, converting line breaks, and
formatting the message if necessary.

## Decision

- We will refactor the getEventContentFromMsgText function to improve its readability and structure.
The changes include:
1. Extracting the markdown conversion logic into a separate function.
2. Simplifying the line break conversion and formatting check.

## Consequences

- The function will be easier to read and maintain.
- The logic for markdown conversion and line break handling will be more modular and reusable

0 comments on commit 345aab0

Please sign in to comment.