Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 50a0b20

Browse files
committed
Add reply support to WysiwygComposer
1 parent 4e8b731 commit 50a0b20

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/components/views/rooms/wysiwyg_composer/message-test.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ describe('message', () => {
6565
expect(content).toEqual({
6666
"body": "> <myfakeuser> Replying to this\n\n<i><b>hello</b> world</i>",
6767
"format": "org.matrix.custom.html",
68-
"formatted_body": "<mx-reply><blockquote><a href=\"$$permalink$$\">In reply to</a> <a href=\"https://matrix.to/#/myfakeuser\">myfakeuser</a><br>Replying to this</blockquote></mx-reply><i><b>hello</b> world</i>",
68+
"formatted_body": "<mx-reply><blockquote><a href=\"$$permalink$$\">In reply to</a>" +
69+
" <a href=\"https://matrix.to/#/myfakeuser\">myfakeuser</a>"+
70+
"<br>Replying to this</blockquote></mx-reply><i><b>hello</b> world</i>",
6971
"msgtype": "m.text",
7072
"m.relates_to": {
7173
"m.in_reply_to": {
@@ -175,7 +177,9 @@ describe('message', () => {
175177
const expectedContent = {
176178
"body": "> <myfakeuser2> My reply\n\n<i><b>hello</b> world</i>",
177179
"format": "org.matrix.custom.html",
178-
"formatted_body": "<mx-reply><blockquote><a href=\"$$permalink$$\">In reply to</a> <a href=\"https://matrix.to/#/myfakeuser2\">myfakeuser2</a><br>My reply</blockquote></mx-reply><i><b>hello</b> world</i>",
180+
"formatted_body": "<mx-reply><blockquote><a href=\"$$permalink$$\">In reply to</a>" +
181+
" <a href=\"https://matrix.to/#/myfakeuser2\">myfakeuser2</a>" +
182+
"<br>My reply</blockquote></mx-reply><i><b>hello</b> world</i>",
179183
"msgtype": "m.text",
180184
"m.relates_to": {
181185
"m.in_reply_to": {

0 commit comments

Comments
 (0)