Skip to content

Commit 3ef4652

Browse files
committed
TW-2145: Add ADR improve for getEventContentFromMsgText func
1 parent 4ce75c2 commit 3ef4652

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# 1. 0003-improve-get-event-content-from-message-text.md
2+
3+
Date: 2024-12-08
4+
5+
## Status
6+
7+
Accepted
8+
9+
## Context
10+
11+
- The current implementation includes parsing the message for markdown, converting line breaks, and
12+
formatting the message if necessary.
13+
14+
## Decision
15+
16+
- We will refactor the getEventContentFromMsgText function to improve its readability and structure.
17+
The changes include:
18+
1. Extracting the markdown conversion logic into a separate function.
19+
2. Simplifying the line break conversion and formatting check.
20+
21+
## Consequences
22+
23+
- The function will be easier to read and maintain.
24+
- The logic for markdown conversion and line break handling will be more modular and reusable

0 commit comments

Comments
 (0)